JunglesMcBeef
Programmer
- Sep 18, 2003
- 266
G'day,
I've been trying to use DateTime.Now.ToString("d") within # characters to save a date to an Access db with an Update query. Now the problem is, it saves the date to the table in American format, even though it is represented as Australian format in the string. How do i get the date to save in Australian format?
Here is a snippet of the string:
I have only just started noticing the problem because the current date allows this to happen (ie 10/12/2004 is US format of 12/10/2004 in Australian format). I have all my regional settings set to Australian formats, so why is it all of a sudden saving the dates in American format?
I've been trying to use DateTime.Now.ToString("d") within # characters to save a date to an Access db with an Update query. Now the problem is, it saves the date to the table in American format, even though it is represented as Australian format in the string. How do i get the date to save in Australian format?
Here is a snippet of the string:
Code:
Chr(35) & DateTime.Now.ToString("d") & Chr(35)