You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "sunjincheng (JIRA)" <ji...@apache.org> on 2017/06/12 09:04:00 UTC
[jira] [Created] (FLINK-6894) Add DATE_FORMAT supported in SQL
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)