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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.