SOLVED

System date - non-abbreviated month?

Go to solution
Anonymous
Not applicable

System date - non-abbreviated month?

Maybe a simple one?
If doable.  I have {{system.date}} at the top of an email. This generates Apr 22 2016, but the editor would like it to be spelled out "April" Is there an option for this, or another way to achieve it?

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: System date - non-abbreviated month?

This needs to be done with email scripting.  Read here:  Date Format Velocity Script

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Re: System date - non-abbreviated month?

This needs to be done with email scripting.  Read here:  Date Format Velocity Script

Anonymous
Not applicable

Re: System date - non-abbreviated month?

I'm circling back to work on this date thing, and the link you provided looks like it's referencing a specific field in the OP's database (

"NextPhoneCallAppointment__c" )

I'm sure the answer is buried in there somewhere, but for me as a velocity beginner, I'm stumped. I don't have a "date field" that I want to use. I just want to use the system.date and reformat it to be spelled out, "November 12, 2016" for example.

But I'm a little stumped right now on this one, as I look around for good explanations

EDIT:

I think I may have gotten there? But I can't tell - I unfortunately am working on this in a month with a name so short it's not abbreviated - so I don't know! hahah!
I just simply did this:

#set($x = $date.calendar)

#set($todays_date = $date.format('MMM dd, yyyy', $x.getTime()))

$todays_date

Josh_Hill13
Level 10 - Champion Alumni

Re: System date - non-abbreviated month?

If you don't need it dynamically set, you can use a My Token in a text token.

Anonymous
Not applicable

Re: System date - non-abbreviated month?

Based on your use case, Both Jamie and Josh's solutions will work great.

If it is a 'monthly' kind of email / landing page, you can simply hard code the value / or My token as Josh said. But you will have to change it every month etc. But nothing special is needed as per coding.

If this is a 'daily' kind of email, where you need to merge 'today's date in that format, as Jamie said, use Email scripting. But that will work on email only. Are these emails go out daily / automatically?

If it is a landing page, you can not use email script. But you can use javascript etc to display date there.

This all is for 'display only' and I think that is all what you want. If you want to store that date in a Marketo field in that format, then you might have to use 'web hooks'.

Rajesh

Anonymous
Not applicable

Re: System date - non-abbreviated month?

In this case it's an email newsletter that gets segmented - and each segment is sent on a different day. I need to have it as a token/script that just pulls system date. I suspect the scripting option mentioned above is my best solution.  Just haven't had a chance yet to tackle implementing it. On this newsletter, the Landing page isn't a concern as it is on others we create.