We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45fe702 + 48de45e commit 75d7ca6Copy full SHA for 75d7ca6
docs/doc/30-reference/20-functions/30-datetime-functions/todatetime.md
@@ -22,6 +22,8 @@ The function extracts a date and time from the provided string. If the argument
22
23
Returns a value of Timestamp type in the format “YYYY-MM-DD hh:mm:ss.ffffff”.
24
25
+If the expr matches this format but does not have a time part, it is automatically extended to this pattern. The padding value is 0.
26
+
27
## Examples
28
29
### Using a String as Argument
@@ -46,6 +48,11 @@ SELECT TO_DATETIME('2022-01-02T01:12:00-07:00');
46
48
47
49
---
50
2022-01-02 08:12:00.000000
51
52
+SELECT TO_DATETIME('2022-01-02T01');
53
54
+---
55
+2022-01-02 01:00:00.000000
56
```
57
58
### Using an Integer as Argument
0 commit comments