Results 1 to 4 of 4
  1. #1
    gdshih is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    4

    FormatDateTime

    I am trying to format a date from 4/27/2012 to April 27, 2012. When I use vbLongDate, it also gives me the day of the week in front, which looks like Friday, April 27, 2012. Is there any way to get rid of the day of the week?



    Thanks

  2. #2
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Funny - I had something like that earlier today - you should find your answer here - http://office.microsoft.com/en-us/ac...001228839.aspx

  3. #3
    gdshih is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    4
    Thanks for the response.

    I am very new to vba code so reading over that article just made me a little more confused..

  4. #4
    ketbdnetbp is offline Competent Performer
    Windows 7 32bit Access 2003
    Join Date
    Mar 2011
    Location
    Midwest
    Posts
    254

    gdshih -

    You could try:
    Forms -
    [Forms]![YourFormName]![DateField].format = "mmmm d yyyy"

    Or
    Vba -
    dim dte1 as date
    dte1 = Format(YourDate,"mmmm d yyyy")

    and see if this gets the desired results.

    Jim

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

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