Email Scripting - Changing a Date Format | Community
Skip to main content
Dan_Askin
Level 4
April 21, 2016
Question

Email Scripting - Changing a Date Format

  • April 21, 2016
  • 2 replies
  • 1524 views
Hi,
Trying to use a email script token to change date formats:

4/27/2016

to

Wednesday, April 27

AND

5:00 PM

to 5pm

Been going through the Apache/Marketo documentation, but I can't for the life of me figure out how to achieve this simple tweak. Any help would be appreciated.
Thanks, Dan
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Grégoire_Miche2
Level 10
April 21, 2016

Hi Dan,

Read here: Date Format Velocity Script

-Greg

Dan_Askin
Dan_AskinAuthor
Level 4
April 21, 2016

Hi Gregoire,

Did see that, but still no dice. We actually re-uploaded the attribute to coincide with the intended date style -- April 27, 2016 10:00 AM -- and Marketo is changing it to 2016-04-29 11:00:00, which is confusing. Now we're trying to set a rule to retain the intended date style.

Dan

Grégoire_Miche2
Level 10
April 21, 2016

Hi Dan,

You may also want to read this: Velocity scripts, email preview and user locale and this:

In velocity, datetime fields will render in ISO format, while date fiels will render in a MMM dd, yyyy one.

Greg