Results 1 to 3 of 3
  1. #1
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402

    Date Format

    Hi All

    sorry if this has been posted before, but here goes

    i am trying to format a date field to show Friday 22nd of November



    how can i get the correct statement to show behing the numbers?

    so 01 becomes 1st
    02 become 2nd
    03 become 3rd

    etc etc

    many thanks

    Steve

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    I found this in another site. I hope this helps.

    Format(Now(), "dddd d""" & IIf(Right(Day(Now()), 2) \ 10 = 1, "th", Nz(Choose(Right(Day(Now()), 1),"st","nd","rd"), "th")) & """ mmmm, yyyy hh:nn:ss")

  3. #3
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi lfpm062010

    Many Thanks

    Steve

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

Similar Threads

  1. Format$ date...
    By 1Giggles in forum Reports
    Replies: 2
    Last Post: 05-20-2013, 07:02 PM
  2. Replies: 4
    Last Post: 03-12-2013, 06:49 PM
  3. Date field not in date format
    By Lorlai in forum Access
    Replies: 11
    Last Post: 06-27-2011, 05:14 PM
  4. Date Format
    By lonewolfwfk in forum Programming
    Replies: 4
    Last Post: 11-25-2010, 09:00 PM
  5. date format
    By dollygg in forum Access
    Replies: 2
    Last Post: 01-19-2010, 10:14 AM

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