Posted By

nialace on 11/21/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

alexvezeau


date


 / Published in: Java
 

  1. String dateFormat = "yyyyMMddHHmmss";
  2. java.util.Date lDte_currentDate = new java.util.Date();
  3. java.text.SimpleDateFormat mySimpleDate = new java.text.SimpleDateFormat(dateFormat);
  4. String dateWithFormat = mySimpleDate.format(lDte_currentDate);

Report this snippet  

You need to login to post a comment.