SFMC 日期时区

SFMC date timezone

我们可以在不使用 dateadd 函数的情况下将 Dataview Sent/Open CST 日期转换为 UTC 时区吗?还有其他与时区相关的功能吗?

是的,AT TIME ZONE

这是一个例子from SFSE:

SELECT 
  t.mailingState
, v.specificUTCDateTime
, case 
    when t.mailingState = 'AB' then convert(datetime2, v.specificUTCDateTime at time zone 'MOUNTAIN STANDARD TIME')
    when t.mailingState = 'VC' then convert(datetime2, v.specificUTCDateTime at time zone 'PACIFIC STANDARD TIME')
  end adjSendDate
from timezones_canada t
outer apply (
  select
     SMALLDATETIMEFROMPARTS(YEAR(GETUTCDate()), MONTH(GETUTCDate()), DAY(GETUTCDate()), 19, 30) AT TIME ZONE 'UTC' specificUTCDateTime
) v