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.


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



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.

  • @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 '17 at 21:19
  • Good thinking @EliotHarper. Praneet, double check your AMPScript Blocks, and possibly try the verbose method, documented here: SystemDateToLocalDate Mar 6 '17 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.