Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

java mysql date format

java.util.Date dt = new java.util.Date();

java.text.SimpleDateFormat sdf = 
     new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

String currentTime = sdf.format(dt);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #mysql #date #format
ADD COMMENT
Topic
Name
2+9 =