Simple code is used to convert Date to DateTime data type using Apex
Sample Code:
Date dToday = System.Today(); Datetime dt = datetime.newInstance(dToday.year(), dToday.month(),dToday.day());
An effort to bring a revolution in Salesforce.
© Salesforce 2016 . Distributed by Blogger Template . Created by Weblogtemplates
No comments:
Post a Comment