Format date

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard Liddiment

    Format date

    I am using FormatDateTime( mydbDate, vbShortDate) but it is NOT returning
    the date formatted according to my regional settings. My regional settings
    are "dd/MM/yyyy" but my date is returned as "d/m/yyyy".

    Where is it getting the format from so that I can correct it or is there a
    better way to format the date, the way I want it?

    I have tried the VB format function but get
    Type mismatch: 'Format'

    Richard


  • Aaron Bertrand - MVP

    #2
    Re: Format date



    --
    Aaron Bertrand
    SQL Server MVP
    Please contact this domain's administrator as their DNS Made Easy services have expired.





    "Richard Liddiment" <Richard@cfp-software.co.uk> wrote in message
    news:bqfu8u$a6e $1@hercules.bti nternet.com...[color=blue]
    > I am using FormatDateTime( mydbDate, vbShortDate) but it is NOT returning
    > the date formatted according to my regional settings. My regional settings
    > are "dd/MM/yyyy" but my date is returned as "d/m/yyyy".
    >
    > Where is it getting the format from so that I can correct it or is there a
    > better way to format the date, the way I want it?
    >
    > I have tried the VB format function but get
    > Type mismatch: 'Format'
    >
    > Richard
    >
    >[/color]


    Comment

    Working...