formatting job variable %MessageTimeStamp%

TJ (32 posts)
January 18, 2019 12:43 PM
Accepted Answer

Hi,

I am using job variable %MessageTimeStamp% in email notification, I am trying to format it to MM/dd/yyyy using %MessageTimeStamp{MM/dd/yyyy}%. but it does not seem work in my case. Can you advice?  Thanks

http://documentation.arcanadev.com/adtempus/help/4.0/#objects/JobVariable/Job_Variables.htm

Bill Staff (604 posts)
January 18, 2019 02:20 PM
Accepted Answer

The problem here is that when adTempus sets the MessageTimestamp variable, it's setting it as a pre-formatted string, rather than as a date-type variable, so the formatting options won't work for it.

The best workaround will be to use an inline function to insert the current date in that format:

%=now("MM/dd/yyyy")%

Replies are disabled for this topic.