Subversion Repositories eFlore/Applications.coel

Rev

Rev 975 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
954 jpm 1
package org.tela_botanica.client.util;
2
 
3
import java.util.Date;
4
 
5
import com.google.gwt.i18n.client.DateTimeFormat;
6
 
7
public class UtilDate {
8
 
9
	public static String formaterEnString(Date date)	{
10
		String dateChaine = "0000-00-00";
11
		if (date != null) {
12
			dateChaine = DateTimeFormat.getFormat("yyyy-MM-dd").format(date);
13
		}
14
		return dateChaine;
15
	}
16
}