Skip to content

Commit

Permalink
Add notes on datetime (pingcap#7468) (pingcap#8213)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored May 17, 2022
1 parent d98cbc7 commit c556735
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions-and-operators/date-and-time-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ summary: Learn how to use the data and time functions.

TiDB supports all of the [date and time functions](https://dev.mysql.com/doc/refman/5.7/en/numeric-functions.html) available in MySQL 5.7.

> **Note:**
>
> - MySQL will often accept the incorrectly formatted date and time values. For example, `'2020-01-01\n\t01:01:01'` and `'2020-01_01\n\t01:01'` are treated as valid date and time values.
> - TiDB makes the best effort to match MySQL's behavior, but it might not match in all instances. It is recommended to correctly format dates, because the intended behavior for incorrectly formatted values is not documented, and is often inconsistent.
**Date/Time functions:**

| Name | Description |
Expand Down

0 comments on commit c556735

Please sign in to comment.