Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 953 → Rev 954

/trunk/src/org/tela_botanica/client/util/UtilDate.java
New file
0,0 → 1,16
package org.tela_botanica.client.util;
 
import java.util.Date;
 
import com.google.gwt.i18n.client.DateTimeFormat;
 
public class UtilDate {
public static String formaterEnString(Date date) {
String dateChaine = "0000-00-00";
if (date != null) {
dateChaine = DateTimeFormat.getFormat("yyyy-MM-dd").format(date);
}
return dateChaine;
}
}