How to convert date in own format java code example
public static String getFormatedDate(String dateFormate, Date date){
try{
DateFormat dft = new SimpleDateFormat(dateFormate);
return dft.format(date);
}catch(Exception e){
e.printStackTrace();
}
return null;
}
try{
DateFormat dft = new SimpleDateFormat(dateFormate);
return dft.format(date);
}catch(Exception e){
e.printStackTrace();
}
return null;
}
Comments
Post a Comment