You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (JIRA)" <ji...@apache.org> on 2017/06/12 13:47:02 UTC

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

    [ https://issues.apache.org/jira/browse/FLINK-6894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16046575#comment-16046575 ] 

Jark Wu commented on FLINK-6894:
--------------------------------

Is this duplicated with FLINK-6693

> 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)