In java I need to display 'time of the program start'
It must be in String
.
How do I get the current time, and then convert it to a String
?
This question is related to
java
string
timestamp
joptionpane
new Date().toString();
http://www.mkyong.com/java/java-how-to-get-current-date-time-date-and-calender/
Dateformatter can make it to any string you want
Source: Stackoverflow.com