function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Renu69Renu69 

conversion form datetime to time

how to convert a datetime value into time value

hitesh90hitesh90

Hi Renu,

 

Here is the sample example for convert datetime to time.

 

datetime dt = system.now();
time t = dt.time();

 

 

Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator