Re: Convert and display date and time of webinar to customer's timezone in email

Abhijeet_Jaiswa
Level 1

Hi,

I have a requirement where I want to  convert and display date and time stored in local tokens ({{my.program-date}} and {{my.program-time}}) in customer's timezone in an email. Is there any way to do it?

 

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Store the date and time in local Velocity tokens.

 

Use Velocity's robust Date and Time capability (see https://blog.teknkl.com/velocity-days-and-weeks/ and my other posts) to adjust the output tz.

Abhijeet_Jaiswa
Level 1

Hi Sanford,

 

Thank you so much for providing reference link. However, I am new to velocity script.  Is it possible for you to explain with some example as per the requirement.

 

 

SanfordWhiteman
Level 10 - Community Moderator

Many examples in that blog post.

 

You can also read the posts at https://blog.teknkl.com/tag/velocity