Results 1 to 4 of 4
  1. #1
    marianne is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Asia Pacific Region
    Posts
    150

    regional settings for Date Formatting

    hi,



    how can i programatically change the regional setting for short date and time format?

  2. #2
    thhui is offline Competent Performer
    Windows XP Access 2002 (version 10.0)
    Join Date
    Feb 2009
    Posts
    235
    You can set user-defined date format function like

    Code:
     
    Function dateformat(a)
      dateformat = Format(a, "mm/dd/yyyy")
    End Function
     
    dateformat(#8/13/2009#)="08/13/2009"
    Last edited by thhui; 06-07-2009 at 11:44 PM.

  3. #3
    marianne is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Asia Pacific Region
    Posts
    150
    thanks thhui ! this function would be helpful.

  4. #4
    thhui is offline Competent Performer
    Windows XP Access 2002 (version 10.0)
    Join Date
    Feb 2009
    Posts
    235
    Glad to see your posting back with success!

    If your issue is resolved, may you use this forum's thread tools feature to mark it solved.

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

Similar Threads

  1. Formatting Fields and Fixed Width Exporting
    By Panman01 in forum Access
    Replies: 1
    Last Post: 05-22-2009, 09:32 AM
  2. Export Formatting
    By arthura in forum Import/Export Data
    Replies: 0
    Last Post: 02-20-2009, 08:44 AM
  3. Need Help Formatting a field.
    By marshallgrads in forum Access
    Replies: 4
    Last Post: 12-06-2007, 03:44 AM
  4. Report settings at runtime in Access 2007
    By soringc in forum Programming
    Replies: 0
    Last Post: 11-22-2007, 10:04 AM
  5. Replies: 1
    Last Post: 11-29-2005, 08:47 AM

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