[jira] [Created] (FLINK-6894) Add DATE_FORMAT supported in SQL

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-6894) Add DATE_FORMAT supported in SQL

JIRA jira@apache.org
sunjincheng created FLINK-6894:
----------------------------------

             Summary: Add DATE_FORMAT supported in SQL
                 Key: FLINK-6894
                 URL: https://issues.apache.org/jira/browse/FLINK-6894
             Project: Flink
          Issue Type: Sub-task
          Components: Table API & SQL
    Affects Versions: 1.4.0
            Reporter: sunjincheng


DATE_FORMAT(date,format) Formats the date value according to the format string.

* Syntax:
DATE_FORMAT(date,format)

* Arguments
**date: -
**format: -

* Return Types
  String

* Example:
  DATE_FORMAT('2009-10-04 22:23:00', '%W %M %Y') -> 'Sunday October 2009'
  DATE_FORMAT('1900-10-04 22:23:00','%D %y %a %d %m %b %j') -> '4th 00 Thu 04 10 Oct 277'

* See more:
** [MySQL| https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_date-format]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)