You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Available on PostgreSQL, MySQL/MariaDB, BigQuery, Redshift, ClickHouse, and Snowflake
503
506
504
-
Converts a datetime string to a datetime.
507
+
Converts a datetime string or bytes to a datetime.
505
508
506
-
Syntax: `datetime(column)`
509
+
Syntax: `datetime(value, mode)`
510
+
511
+
-`value`: The string, bytes, or number to convert to a datetime.
512
+
-`mode`: Optional. The mode indicating the format. One of: `"simple"`, `"iso"`, `"simpleBytes"`, `"isoBytes"`, `"unixSeconds"`, `"unixMilliseconds"`, `"unixMicroseconds"`, `"unixNanoseconds"`. Default is `"iso"`.
<p>Example: <codeclass="language-plaintext highlighter-rouge">[Orders → Created At] + timeSpan(7, "day")</code> will return the date 7 days after the <codeclass="language-plaintext highlighter-rouge">Created At</code> date.</p>
<p>Example: <codeclass="language-plaintext highlighter-rouge">today()</code> would return the current date, such as <codeclass="language-plaintext highlighter-rouge">2025-05-04</code>.</p>
0 commit comments