Results 1 to 4 of 4
  1. #1
    lylyming977 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    9

    How to convert number date to text in Access query?

    Hello,

    I need help on how to convert number date to text date.

    Ex. Date field: 02/12/2015

    convert into:

    Month field
    February

    Day Field
    12

    Year


    2015

    Thank you for your help.
    Lyly

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Access has MONTH, DAY, and YEAR functions that will return those values from any date field. The only caveat is that these return numeric values.

    The only one that might not work for is the month, as it looks like you want the word, and not the number. You can use the FORMAT function for that, i.e.
    MonthPart: FORMAT([DateField],"mmmm")

    You can also use the FORMAT function to return the Day and Year in Text format, i.e.:

    YearPart: FORMAT([DateField],"yyyy")

    DayPart: FORMAT([DateField],"d")
    or
    DayPart: FORMAT([DateField],"dd")
    if you want a two digit day (i.e. leading zeroes if day number is less than 10).

  3. #3
    lylyming977 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    9
    JoeM- Thank you so much!!!! It works. You are so good!!!

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You are welcome. Glad to help!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Convert Short text column to date ms access
    By SameerSarswat in forum Access
    Replies: 3
    Last Post: 10-09-2014, 10:42 AM
  2. Replies: 4
    Last Post: 10-01-2014, 03:59 PM
  3. convert number to text number like in cheque
    By ravideep in forum Reports
    Replies: 1
    Last Post: 03-12-2013, 05:55 AM
  4. Convert number to text
    By Bertrand82 in forum Queries
    Replies: 7
    Last Post: 10-12-2012, 01:19 PM
  5. Convert Text to Number
    By Jerseynjphillypa in forum Import/Export Data
    Replies: 7
    Last Post: 05-09-2012, 12:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums