Few questions:
- How can I print now (The current Date/Time) in the format below.
- How can I convert a string date, into a date object if I know the format, same format as below.
Example:
2011-05-04 19:12:46 -0500
Format:
YYYY-MM-DD HH:MM:SS [+|-]hh[mm]
Try:
The link to SimpleDateFormat Javadoc is here.