Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
5
Task/Date-format/Apex/date-format.apex
Normal file
5
Task/Date-format/Apex/date-format.apex
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Datetime dtNow = datetime.now();
|
||||
String strDt1 = dtNow.format('yyyy-MM-dd');
|
||||
String strDt2 = dtNow.format('EEEE, MMMM dd, yyyy');
|
||||
system.debug(strDt1); // "2007-11-10"
|
||||
system.debug(strDt2); //"Sunday, November 10, 2007"
|
||||
Loading…
Add table
Add a link
Reference in a new issue