anybody help me please,
how can i change system date format in vb6.
thanks for reading this post,
i want to change system date format is

Recommended Answers

format(date, "dd-mm-yyyy")

Jump to Post

All 4 Replies

format(date, "dd-mm-yyyy")

thank you, but that not.I mean system date in OS.

thank you, but that not.I mean system date in OS.

If it's not the system date, what is date? What's wrong with using it?

.I mean system date in OS.

Viaual Basic has no direct way of doing that. You have to use Win 32 API calls to do that.

If you want to just show the International Control Panel, do the following Shell "Control.exe intl.cpl" To set the format settings for the OS without having user intervention, you probably have to use CPIApplet API with the CPLINFO and NEWCPLINFO structures. This involves moderate to advanced knowledge of the C programming language, and also requires moderate to advanced experienced in working with the Windows APIs.

But you can declare these functions in Visual Basic as well as the structures and you should be able to do what you desire using VB6. You have asked a difficult question.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.