[英]issues with Formatdate function in ampscript
I have an issue where I want to display only the hh.mm in da-DK from the NOW()
function in AMPscript.我有一个问题,我想在 AMPscript 中仅显示来自
NOW()
function 的 da-DK 中的 hh.mm。 I have tried the following two options.我尝试了以下两个选项。
formatdate(Now(),"","HH.mm","da-DK")
This inputs only time but servertime, ex.这仅输入时间但服务器时间,例如。 03.16
03.16
format(Systemdatetolocaldate(Now()),"","hh.mm")
Correct time but the whole string, ex.正确的时间,但整个字符串,例如。 12/10/2020 10:16:44 AM
2020 年 12 月 10 日上午 10:16:44
Anyone with some pointers?有人有一些指针吗?
I've found a "quickfix" with the set of我找到了一套“快速修复”
SET @redeemedHour = datePart(Systemdatetolocaldate(Now()),"H")
SET @redeemedMinute = datePart(Systemdatetolocaldate(Now()),"minute")
and then concanate然后连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.