Subversion Repositories eFlore/Applications.coel

Rev

Rev 975 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.client.util;

import java.util.Date;

import com.google.gwt.i18n.client.DateTimeFormat;

public class UtilDate {
        
        public  final static DateTimeFormat formatDateMysql = DateTimeFormat.getFormat("yyyy-MM-dd");
        public  final static DateTimeFormat formatDateFr = DateTimeFormat.getFormat("dd/MM/yyyy");
        
        public static String formaterEnString(Date date)        {
                String dateChaine = "0000-00-00";
                if (date != null) {
                        dateChaine = formatDateMysql.format(date);
                }
                return dateChaine;
        }
}