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


1 Answer 1


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 ]%% Commented Mar 5, 2017 at 21:19
  • Good thinking @EliotHarper. Praneet, double check your AMPScript Blocks, and possibly try the verbose method, documented here: SystemDateToLocalDate Commented 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 .