Skip to content

Instantly share code, notes, and snippets.

@xgeek-net
Created May 14, 2015 07:59
Show Gist options
  • Save xgeek-net/03ed97ba9a97e59df875 to your computer and use it in GitHub Desktop.
Save xgeek-net/03ed97ba9a97e59df875 to your computer and use it in GitHub Desktop.
DateTime dt = DateTime.now();
String dateTimeStr = dt.format('yyyy/MM/dd hh:mm:ss');
System.debug('>>>>' + dateTimeStr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment