Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to read the date format specified in the Regional Settings and change it ?

Posted on 2006-03-23
3
Medium Priority
?
174 Views
Last Modified: 2010-05-01
I need to ensure that the date format in Regional Settings is "dd/mm/yyyy". How do I find out the date format in Regional Settings and change it if necessary ?

0
Comment
Question by:rajesh_khater
3 Comments
 
LVL 8

Accepted Solution

by:
Leo Eikelman earned 800 total points
ID: 16273115
0
 
LVL 14

Assisted Solution

by:MilanKM
MilanKM earned 600 total points
ID: 16273216
MsgBox Format(Date, "Short Date")
'Returns current system date in the system-defined short date format

MsgBox Format(Date, "Long Date")
'Returns current system date in the system-defined long date format

See the following link 2 set Regional Setting:~
http://www.tek-tips.com/viewthread.cfm?qid=1203846&page=1

:)
0
 
LVL 1

Assisted Solution

by:Kaleb2000ac
Kaleb2000ac earned 600 total points
ID: 16325194
Search for "Force Date Format" on this site, the solucion is a function that gets what you need.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month21 days, 4 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question