Results 1 to 4 of 4
  1. #1
    zx3 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    47

    Red face I need to show date in format dd/mm/yyyy

    Hi All,



    I m working on a project where the table has a date field with format set as dd/mm/yyyy, and i have a combobox which i populate it with the dates from the table, when clicking the combobox on the form, the dropdown listed the dates correctly as dd/mm/yyyy, but when a date is picked, the date turn into a shortdate (mm/d/yyyy), i tried setting the format of each combobox thru its properties page, and i tried setting it thru code but no luck.

    All i want is to have date format consistency showing as dd/mm/yyyy when a date is picked, please help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Review http://allenbrowne.com/ser-36.html

    If you are developing this db to run on computer with system date set as dd/mm/yyyy, then must develop in that same environment.

    International (i.e. non-standard) date is common topic in forum. Might search and look at the discussions.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    161
    In control panel > Regional Setting > Custom Setting > Date . Set short Date Format as dd/mm/yyyy & apply setting
    This will change All date format including Combo Box as dd/mm/yyyy.

  4. #4
    zx3 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    47
    Finally, i figure it out myself, just use the code to fix the display on the combobox, wrap the code below in the combo1_change sub
    Me.Combo1.Value = Format(Me.Combo1.ItemData(0), "dd/mm/yyyy")

    Thanks June7 and A S MANN too for the info.

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

Similar Threads

  1. CDate function to convert from dd.mm.yyyy format
    By GregTheSquarePeg in forum Queries
    Replies: 7
    Last Post: 10-11-2013, 07:11 AM
  2. Can access format a date in an odd way? DD-MMM-YYYY
    By redbull in forum Programming
    Replies: 3
    Last Post: 08-23-2013, 11:34 AM
  3. UK Date Format In Linked Table ("dd/mm/yyyy")
    By smoothlarryhughes in forum Queries
    Replies: 1
    Last Post: 06-18-2013, 08:29 PM
  4. Replies: 12
    Last Post: 03-09-2011, 04:16 PM
  5. Replies: 1
    Last Post: 06-11-2009, 05:40 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