Play Games

Search This Blog

Monday, June 6, 2016

Convert Datetime to date in Apex

DateTime newDateTime = System.now();
Date newDate = date.newinstance(newDateTime.year(), newDateTime.month(), newDateTime.day());

No comments:

Post a Comment