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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type Mismatch when formatting dates

Status
Not open for further replies.

Molema

Programmer
Apr 4, 2002
8
0
0
ZA
I am trying to format the current date i.e. Date() or Now() with various date functions, but I continuously get a 'Type Mismatch' error.
I cannot see any fault with the syntax i am using i.e. FormatdateTime(Date(),1)
Could someone please shed some light on this for me ??
 
I have just changed my regional settings back to English(United States), which seemed to solve the problem.
Thanks Anyway :)
 
There have been many problems reported with DateTime objects with certain regional settings, if you do a search you should get quote a few hits on that, in fact just doing a search on FormatDateTime will probably give you a bunch :p
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top