From f15a4d8fc10da393b419bd73085f8f87429ea280 Mon Sep 17 00:00:00 2001
From: Cal Herries <39073188+calherries@users.noreply.github.com>
Date: Tue, 6 Dec 2022 07:43:55 +0100
Subject: [PATCH] Fix datetime literal format in datetime function docs
 (#26973)

* Fix formatting for datetime function docs

* Undo datetimeAdd and datetimeSubtract
---
 docs/questions/query-builder/expressions-list.md | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/docs/questions/query-builder/expressions-list.md b/docs/questions/query-builder/expressions-list.md
index b278c0bc1a6..1b2a0cb5c84 100644
--- a/docs/questions/query-builder/expressions-list.md
+++ b/docs/questions/query-builder/expressions-list.md
@@ -312,7 +312,7 @@ Takes a datetime and returns the day of the month as an integer.
 
 Syntax: `day([datetime column])`.
 
-Example: `day("March 25, 2021, 12:52:37")` would return the day as an integer, `25`.
+Example: `day("2021-03-25T12:52:37")` would return the day as an integer, `25`.
 
 ### endswith
 
@@ -350,7 +350,7 @@ Takes a datetime and returns the hour as an integer (0-23).
 
 Syntax: `hour([datetime column])`.
 
-Example: `hour("March 25, 2021, 12:52:37")` would return `12`.
+Example: `hour("2021-03-25T12:52:37")` would return `12`.
 
 ### interval
 
@@ -420,7 +420,7 @@ Takes a datetime and returns the minute as an integer (0-59).
 
 Syntax: `minute([datetime column])`.
 
-Example: `minute("March 25, 2021, 12:52:37")` would return `52`.
+Example: `minute("2021-03-25T12:52:37")` would return `52`.
 
 ### month
 
@@ -428,7 +428,7 @@ Takes a datetime and returns the month number (1-12) as an integer.
 
 Syntax: `month([datetime column])`.
 
-Example: `month("March 25, 2021, 12:52:37")` would return the month as an integer, `3`.
+Example: `month("2021-03-25T12:52:37")` would return the month as an integer, `3`.
 
 ### power
 
@@ -448,7 +448,7 @@ Takes a datetime and returns the number of the quarter in a year (1-4) as an int
 
 Syntax: `quarter([datetime column])`.
 
-Example: `quarter("March 25, 2021, 12:52:37")` would return `1` for the first quarter.
+Example: `quarter("2021-03-25T12:52:37")` would return `1` for the first quarter.
 
 ### [regexextract](./expressions/regexextract.md)
 
@@ -494,7 +494,7 @@ Takes a datetime and returns the number of seconds in the minute (0-59) as an in
 
 Syntax: `second([datetime column)`.
 
-Example: `second("March 25, 2021, 12:52:37")` would return the integer `37`.
+Example: `second("2021-03-25T12:52:37")` would return the integer `37`.
 
 ### sqrt
 
@@ -550,7 +550,7 @@ Takes a datetime and returns the week as an integer.
 
 Syntax: `week(column, mode)`.
 
-Example: `week("March 25, 2021, 12:52:37")` would return the week as an integer, `12`.
+Example: `week("2021-03-25T12:52:37")` would return the week as an integer, `12`.
 
 - column: the name of the column of the date or datetime value.
 - mode: Optional.
@@ -564,7 +564,7 @@ Takes a datetime and returns the year as an integer.
 
 Syntax: `year([datetime column])`.
 
-Example: `year("March 25, 2021, 12:52:37")` would return the year 2021 as an integer, `2,021`.
+Example: `year("2021-03-25T12:52:37")` would return the year 2021 as an integer, `2,021`.
 
 ## Database limitations
 
-- 
GitLab