Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date setting on each pc

Status
Not open for further replies.

eequalsmc2plus1

Programmer
Aug 26, 2002
28
ZA
Hi,

Wrote a program that does some stuff to the date, but put it on another computer and didnt work.
Figured out it was the Date settings on that pc.
Some are yymmdd others ddmmyy.
How you get around this ???
Can you get those setting in VB ?

Thanks
Damian
 
Use the format function to dsplay the date any way you wish.

text1=format(date,"mm/dd/yyyy")
text2=format(date,"mmm dd, yyyy")
text3=format(date,"yyyy-mm-dd")
Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top