Results 1 to 4 of 4
  1. #1
    MFS is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235

    Date Format In Table

    Not sure if I am posting in the correct forum for this question.

    I use SQL tables within my Access DB, In the tables my date field is automatically updated whenever data is entered. The issue is the format of the date is YYYY-MM-DD, this presents a small problem to the DB user when Querying the data for here in the states we are used to a MM/DD/YYYY format.


    Searching the net I could not find a way to reformat the date within the SQL table. If someone could guide me in the right direction in doing so that would be great, otherwise is there a way that we could work around this in Access ?
    Open to suggestions . . .

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,113
    SQL Server dates are always shown as YYYY-MM-DD but they are stored as double datatype numbers (same as in Access)
    Access will display those dates in the default Windows format e.g. mm/dd/yyyy unless you tell it otherwise
    So you should need to do nothing - your query should just work.

    Check the following
    a) default date format in Windows settings
    b) date formatting for that field in the table & the form

    If you can't find where its being set, try using Format(MyDateField,"mm/dd/yyyy") but be aware this converts it into a string


    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    MFS is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    Thank You ridders52, Well now I feel like a total idiot, I should have checked my Query with the MM/DD/YYYY format but just didn't for I truly thought that it would not work. I have checked now and it does work.
    Thank You again

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,113
    No problem
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 3
    Last Post: 12-30-2016, 10:27 AM
  2. updating the date format in a table?
    By Darla in forum Queries
    Replies: 2
    Last Post: 08-10-2016, 09:00 AM
  3. Date changes format when inserted into table.
    By todmac in forum Programming
    Replies: 3
    Last Post: 07-08-2016, 11:12 AM
  4. Replies: 2
    Last Post: 08-16-2015, 07:04 PM
  5. Replies: 4
    Last Post: 03-12-2013, 06:49 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