Solved

How to change system date format with VB?

Posted on 2004-08-13
4
1,345 Views
Last Modified: 2008-01-09
Hi friends!

  I have developed an application in VB 6.0, which requires the
system date format to be 'dd/mm/yyyy' to function properly.At
present, I'm changeing it from the control panel before installing
the application in each system.

  Is there any way to change it programmatically? If so, please
give me the coding to change the system date format.

  Thank You!
0
Comment
Question by:vkani
4 Comments
 
LVL 19

Accepted Solution

by:
Shauli earned 100 total points
ID: 11798762
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 11799041
I would suggest that you change the application to use whatever the date format the user has chosen. Some users might have want it the way that they have set it.
The VB Date/time value is the same regardless of the display format.
0
 
LVL 4

Expert Comment

by:ark4877
ID: 11800975
0
 
LVL 1

Author Comment

by:vkani
ID: 11803350
Thank you Shauli,
           your link gave me exactly what I was looking for.

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now