You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/09 03:38:59 UTC

[GitHub] [doris] nextdreamblue commented on issue #13131: [Enhancement] Add new builtin function of the first day of month

nextdreamblue commented on issue #13131:
URL: https://github.com/apache/doris/issues/13131#issuecomment-1272446544

   MySQL [(none)]> select month_floor('2021-12-22 01:02:03');
   +------------------------------------+
   | month_floor('2021-12-22 01:02:03') |
   +------------------------------------+
   | 2021-12-01 00:00:00                |
   +------------------------------------+
   1 row in set (0.01 sec)
   
   MySQL [(none)]> select date_format(month_floor('2021-12-22 01:02:03'),'yyyy-MM-dd');
   +-------------------------------------------------------------+
   | date_format(month_floor('2021-12-22 01:02:03'), '%Y-%m-%d') |
   +-------------------------------------------------------------+
   | 2021-12-01                                                  |
   +-------------------------------------------------------------+


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org