Created
May 14, 2015 07:57
-
-
Save xgeek-net/3372942d1e89f44b8ddc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Date dToday = Date.today(); | |
String dateStr = dToday.year() + '/' + dToday.month() + '/' + dToday.day(); | |
System.debug('>>>>' + dateStr); | |
System.assertEquals(dateStr, '2015/4/24'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment