Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

date to string java

    Date date = Calendar.getInstance().getTime();  
    DateFormat dateFormat = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");  
    String strDate = dateFormat.format(date);  
 
PREVIOUS NEXT
Tagged: #date #string #java
ADD COMMENT
Topic
Name
3+4 =