How to set the default time to 7 AM for Date/Time Field

Posted by anu31221@gmail.com on 30-Jan-2018 21:39

Do we have way to default select to 7 AM for Date/Time Field in the object.

All Replies

Posted by mpiscoso@gmail.com on 31-Jan-2018 03:24

Try this:

var dt = new Date('{!#TODAY}'); dt.setHours(7,0,0,0); //Change {!#TODAY} to whatever you need it to be

rbf_setFieldValue('dateTimeField',dt); //As long as it's a date object that has it's time set to whatever you need it to be it should work

This should work.

This thread is closed