AnsweredAssumed Answered

Updating datetime field type with velocity script

Question asked by 951c89d692d673903f076dd865d1530713323e63 on Nov 16, 2016
Latest reply on Nov 17, 2016 by sanford.whiteman

I am looking to pull a datetime field type, {paymentStartDateTime_c}, add one year to the value and display the result.

 

I also need the value displayed to adjust based on the leads time zone, {timeZone_c}.

 

Here is the code I am using:

 

This is the output for a lead located in US/Central time:

    

     $z.add(1, 1) $z.add(10,2) $date.format('medium',$z)

 

Suggestions?

 

Thank you!

Outcomes