Pages

Subscribe Twitter Twitter

Wednesday, February 28, 2007

java date format

private String getToday(){
String strToday="";
Date date = new Date();
//Format formatter = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Format formatter = new SimpleDateFormat("yyyy_MM_dd_HH_mm"); 
strToday = formatter.format(date);
return strToday;
} 

No comments: