MONTH-日期中的月份

1. 概述

语法
MONTH(文本/日期时间, 格式)返回日期中的月,月是介于1和12之间的一个数
     参数1文本/日期时间

含有所求的月的日期

     参数2

格式

   返回值类型数值

2. 注意事项

  • 允许MONTH(文本/日期时间,格式)内参数为空,即MONTH(),当参数为空时,取当前系统的服务器时间对应日期的月数

  • 如果参数中有NULL,则结果为 NULL

3. 示例

公式结果
MONTH()等于10,对应系统服务器时间为2020-10-23 15:36:25
MONTH("2000/1/1")1
MONTH("1997-04-20","yyyy-MM-dd")4



附件列表


主题: 数据开发
  • Helpful
  • Not helpful
  • Only read

滑鼠選中內容,快速回饋問題

滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

不再提示

9s后關閉

Get
Help
Online Support
Professional technical support is provided to quickly help you solve problems.
Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
Page Feedback
You can provide suggestions and feedback for the current web page.
Pre-Sales Consultation
Business Consultation
Business: international@fanruan.com
Support: support@fanruan.com
Page Feedback
*Problem Type
Cannot be empty
Problem Description
0/1000
Cannot be empty

Submitted successfully

Network busy