CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    132

    Weird Format Date()

    Hi Everyone!

    I am having this really weird thing when I try to make a tekst field display the date in for example this way =Format(Date();"dd mmmm jjjj"). When I try to do it like that Access autocorrects the code to =Format(Date();"dd mmmm"" jjjj""") The jjjj are correct because I'm from holland, I have tried yyyy.
    This leaves me with a date like "9 march jjjj".
    Does anyone know why this is and how to resolve it?

    Many thanks Gurus,

    Jasper
    Flying is to throw yourself on the ground and miss

  2. #2
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    132
    Ahum,

    Never mind, it was a typo.

    Sorry gurus,

    Jasper
    Flying is to throw yourself on the ground and miss

  3. #3
    Join Date
    Jun 2002
    Location
    Clane, Ireland
    Posts
    766
    When you replaced the jjjj with yyyy, did you remove the extra quotes?

    i.e. Format(Date();"dd mmmm"" jjjj""") to Format(Date();"dd mmmm yyyy")
    JP

    Please remember to rate all postings.

  4. #4
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    132
    Hi jp140768,

    Sorry for this post, it was just a mis type. But I am thankfull for your reply.

    Regards,

    Jasper
    Flying is to throw yourself on the ground and miss

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured