Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
date varDateTime = "2011-08-17T18:30:55";
string format = "EEE, d MMM yyyy HH:mm:ss Z";
print("Formatted date is " + formatDate(varDateTime, format));

Print Formatted date is Wed, 17 Aug 2011 18:30:55 +0300

 

Info

For a full set of date formats that can be used, check out the SimpleDateFormat documentation from Oracle.

...