Activity › Forums › Salesforce® Discussions › how to convert date/time to date in Salesforce? Salesforce® Discussions how to convert date/time to date in Salesforce? Posted by Shubham on April 2, 2020 at 6:13 PM how to convert date/time to date in Salesforce? Sumit kumar replied 6 years, 1 month ago 2 Members · 1 Reply 1 Reply Sumit kumar Member April 3, 2020 at 1:37 PM Try taking the Year, Month, and Day values out of the DateTime variable and pass them into the Date.newInstance() method. Here is some psuedo-code: DateTime dT = System.now(); Date myDate = date.newinstance(dT.year(), dT.month(), dT.day()); Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me