Hi
I am having a little problem (OK maybe not so little as it has had me puzzled) with the date format. When I pass a date via my .Net page it seems to interpret it in US format when I want it to interpret in UK format. For example I have built a very basic page with a textbox, button and a label. The label is filled with date I input into textbox when I click the button, a sample of my code is below.
lblDate.Text = (FormatDateTime(txtDate.Text, DateFormat.LongDate))
So if I enter 07/09/03 the label returns 09 July 2003 when I want it to return the 7th September 2003. So if I enter 13/09/03 it will throw and error as it thinks there is no 13th months.
I have checked my Regional Settings and they are all in UK format. Im just wondering if there is another setting I am over looking on my PC or is there a Dot Net Framework configuration I need to do.
Many thanks in advance
I am having a little problem (OK maybe not so little as it has had me puzzled) with the date format. When I pass a date via my .Net page it seems to interpret it in US format when I want it to interpret in UK format. For example I have built a very basic page with a textbox, button and a label. The label is filled with date I input into textbox when I click the button, a sample of my code is below.
lblDate.Text = (FormatDateTime(txtDate.Text, DateFormat.LongDate))
So if I enter 07/09/03 the label returns 09 July 2003 when I want it to return the 7th September 2003. So if I enter 13/09/03 it will throw and error as it thinks there is no 13th months.
I have checked my Regional Settings and they are all in UK format. Im just wondering if there is another setting I am over looking on my PC or is there a Dot Net Framework configuration I need to do.
Many thanks in advance