TransWikia.com

How to have a fixed time populated in a date/time formula field?

Salesforce Asked by Shobhit Saxena on January 27, 2021

I have to create a date/time formula field, whose date value will come from a date/time field. However, I want the time to be always 5:00 am. How do I achieve that?

One Answer

You can try this formula:

DATETIMEVALUE(TEXT(DATEVALUE(CreatedDate))+ ' 05:00:00')

Where CreatedDate is your DT field. This will be in GMT though, so you have have to adjust for your time zone.

Correct answer by Paul Kissick on January 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP