Dates and Times

The Field Nation REST API returns UTC values and local times that are based on a work order’s service location address. Many work order components use the date and time object, including Schedules and more.

Date and Time Object

Parameter Type Example Mapping/Notes
utc string "utc":"2018-11-07 13:00:00" UTC date and time in the format of YYYY-MM-DD HH:MM:SS.
local object "local": {} Returns local timezone date and time.
date string "date": "2018-11-09" Local date in the format of YYYY-MM-DD.
other string "time": "17:00:00"
(5 PM)
Local 24-hour time in the format of HH:MM:SS.

Date and Time Examples

Tip: UTC and local parameters may be reversed for different objects.

Schedule, Start Date and Time
Date Work Order Created