+ Reply to Thread
Results 1 to 3 of 3

Converting a date to text

  1. #1
    Registered User
    Join Date
    08-02-2007
    Posts
    8

    Converting a date to text

    Hi-

    I have some dates that need to be converted into text to be used in a parameter query. It has to be in the format yyyy/mm/dd. I tried =TEXT(B2,yyyy/mm/dd), but that results in an error. I can't just chnage the formatting in B2 because I also have to be able to do math with that date.

    Any suggestions?

    Thanks
    Alicia

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    With TEXT function you need quotes around the format, i.e.

    =TEXT(B2,"yyyy/mm/dd")

  3. #3
    Registered User
    Join Date
    08-02-2007
    Posts
    8
    Thank you!

    The sad thing is that I've made that mistake at least twice before...

    Alicia

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1