0

I am using below AMPscript in sms to display current time in SMS.

But I am getting blank message where I have used the function.

%%=SystemDateToLocalDate(Now())=%% 

Can you please help above is not working for SMS but same is working fine for email template

Thanks

1 Answer 1

2

The following 2 functions worked for me (Outbound SMS):

%%=SystemDateToLocalDate(Now())=%% and %%=v(SystemDateToLocalDate(Now()))=%% 

If you know the specific timezone conversion, you could use the DateAdd function to manually alter the datetime.

2
  • @Praneet, Cameron's 2 functions worked for me too. Are you sure that the inline AMPscript code is not within an AMPscript block? e.g. %%[ your code ]%% Mar 5, 2017 at 21:19
  • Good thinking @EliotHarper. Praneet, double check your AMPScript Blocks, and possibly try the verbose method, documented here: SystemDateToLocalDate Mar 6, 2017 at 0:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .