Skip to main content
I'm using a publisher action to help add time entries for users. The time entry record captures a start date time and end date time. 

 

I'm making an "8 hour entry" publisher action, where my user can specify type of activity and give the day, and I'll calculate the rest.

 

How do I build a formula to populate Start Date Time with today's date at 6:00AM, and then End Date with today's date at 2:00PM?

 

Thanks!
2 respostas
  1. 19 de ago. de 2016, 16:01

    Micah, your formula would be this:

    DATETIMEVALUE(

    TEXT(YEAR(TODAY())) + "-" +

    TEXT(MONTH(TODAY()))+ "-" +

    TEXT(DAY(TODAY())) +

    " 06:00:00"

    )

    Now remember that the above DATETIMEVALUE is always calculated in GMT so you will have to make adjustmetns to the formula to make it show the correct value. Good luck!

0/9000