Subversion Repositories eFlore/Applications.coel

Rev

Rev 949 | Rev 965 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 949 Rev 954
Line 1... Line 1...
1
package org.tela_botanica.client.util;
1
package org.tela_botanica.client.util;
Line -... Line 2...
-
 
2
 
-
 
3
import java.util.Date;
-
 
4
 
-
 
5
import com.google.gwt.i18n.client.DateTimeFormat;
2
 
6
 
Line 3... Line 7...
3
public class UtilString {
7
public class UtilString {
4
	
8
	
5
	/**
9
	/**
Line 31... Line 35...
31
		if (!isEmpty(nombre)) {
35
		if (!isEmpty(nombre)) {
32
			return Integer.parseInt(nombre);
36
			return Integer.parseInt(nombre);
33
		}
37
		}
34
		return new Integer(0);
38
		return new Integer(0);
35
	}
39
	}
-
 
40
	
-
 
41
	public static Date formaterEnDate(String dateChaine)	{
-
 
42
		Date date = null;
-
 
43
		if (!isEmpty(dateChaine) && !dateChaine.equals("0000-00-00")) {
-
 
44
			date = DateTimeFormat.getFormat("yyyy-MM-dd").parseStrict(dateChaine);
-
 
45
		}
-
 
46
		return date;
-
 
47
	}
36
}
48
}