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
DJ 367DJ 367 

PreviousDate + current time

Hello All,

I have a req where I have a date only and I have to add it with current time. Thanks
Raj VakatiRaj Vakati
You can create a custom date filed and update from the workflow 
Akashdeep LNUAkashdeep LNU


For capturing date and time field on particular object:

Set Up -> Object Manager ->Click on the Object where you want to create Date/Time field ->Click on Field & Relationships ->on the right click on New -> Select Data Type Date/Time and proceed further.

From this two fields will be created on the selected object where you can choose the date and in the time field current time will automatically populate.

If you want to do it by formula, refer the article which will help you to create the formula fields:

Thank You

DJ 367DJ 367

Thanks for all your reply. However my Req is I already have date and need to add current time to it thru code.