[Reference] SharePoint: It is funny to use functions such as today and me in calculated fields, but it is effective.

Source: Internet
Author: User
(Hidden) myvisited
Visited counter. Current :( 285)
2007-3-30
SharePoint: It is funny to use functions such as today and me in calculated fields, but it is effective.

Raise questions:

I have wss3.0 there is a custom list, which is based on an existing column [ Date of Birth ] to calculate [ age ] , the formula = datedif ([ Date of Birth ], today, "Y ") to compute, but it is found that today or mE This function cannot be used in computed columns.

I don't know how to calculate the current age?

 

This problem has been plagued by many friends, but the solution is very funny. It seems that you just lied to SharePoint.

 

Procedure:

Step 1: create a field calledToday, (All types of text are supported)

Step 2: Create the field you want to calculateAge, Formula=Datedif ([Date of birth], Today, "Y ")The type is a number.

Step 3: deleteTodayField.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.