Forum Discussion
NathanHawe
5 years agoQrew Cadet
I believe that's the expected behavior. The milliseconds value doesn't include any time zone offset information so it makes sense to treat all values as UTC. The API will accept a string format like MM-dd-yyyy H:mm to update date/time fields which can be a bit easier to generate in UTC especially in JavaScript where you have UTC specific methods on Date objects.
------------------------------
Nathan Hawe
------------------------------
let d = new Date();
let formattedDateString = `${d.getUTCMonth()+1}-${d.getUTCDate()}-${d.getUTCFullYear()} ${d.getUTCHours()}:${d.getUTCMinutes()}`
------------------------------
Nathan Hawe
------------------------------
- Ad_PlannerSyste5 years agoQrew MemberThanks, Nathan, that is very helpful. --Jeffrey
------------------------------
Ad Planner System
Technical Solutions Specialist
RR Donnelley
------------------------------