SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

Calculated column formula - convert to date?

Last post 07-08-2009, 4:54 PM by Tonaldo. 1 replies.
Sort Posts: Previous Next
  •  07-02-2009, 3:30 PM 19655

    Calculated column formula - convert to date?

    Hi all,

    I have a calculated column in a MOSS document library that compares two date columns and returns a text value.

    The problem is that the comparison is 100% correct because one column is a DateTime (Date & Time) column and the other is just a DateTime (Date only) column.

    Is there a way in the formula to convert the datetime field to just the date?

    Here is the formula I am currently using:

    =IF([ATQ Date]="","No ATQ",IF([ATQ Date]Deadline,"No")))

    Thanks in advance,

    Alex
    Alex Clark
    SharePoint Consultant
    Intelligent Decisioning Ltd
    www.id-live.com
    http://sharepointcoding.wordpress.com
    @sharepointalex

    MCTS: WSS 3.0 Config / WSS 3.0 Dev
  •  07-08-2009, 4:54 PM 19745 in reply to 19655

    Re: Calculated column formula - convert to date?

    the formula below work where Start is a date and time and End is date only

    =(DAY(End)-(DAY(Start)))
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems