YEAR-返回年份

1. 概述

语法
YEAR(文本/日期时间, 格式)返回日期中的年
     参数1文本/日期时间

是介于1900和9999之间的一个数

     参数2

格式

   返回值类型数值

2. 注意事项

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

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

3. 示例

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




附件列表


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

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

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

不再提示

10s後關閉

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