Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 359

Construct date time string from current date time using AMPscript

$
0
0

I'm trying to construct a date time string using AMPscript in the format yyyy-mmm-ddThh:mm:ss based on the current time (where T is a letter). Is it possible to achieve this without using the Concat() function? Here's what I have at the moment:

Concat(FormatDate(now(), "", "yyyy-MM-ddT"),FormatDate(now(), "", "hh:mm:ss")

Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>