QuestionQ37

VerifiedScripting and Automation

A developer needs to adjust the Date_Enrolled date-and-time field from Daylight Saving Time.

How should the developer move the time back one hour?

Explanation

AMPscript DateAdd() performs date arithmetic. An amount of -1 with the H unit subtracts one hour from a date/time value; H is the accepted unit for hours. FormatDate() formats a date for display and does not perform the required time adjustment.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!