Hello There.
I am programming with visual basic within the Excel realm.
I have a problem with the way my selected textbox recognizes dates generated from the datepicker.
I am from New Zealand and have set me PC regional settings accordingly.
Our date format is 26 October 2006, 26/10/06.
I have formatted the textbox with the following code:
textbox60.Value = DTPicker1.Value
textbox60 = Format(textbox6 0, "dddd d mmmm")
This works fine if the days in the month are 13th and above.
Example: Date selected 26/10/06, the text will display as:
Thursday 26 October
But if the days are below the 13th, example:02/10/06, the date will display as:
Friday 10 February
I can see what is happening, the dates are swapping to the U.S format of 10/02/06, this is extremely annoying!!
Can anyone help with some clean up code?
Yours " Visual Virgin'
I am programming with visual basic within the Excel realm.
I have a problem with the way my selected textbox recognizes dates generated from the datepicker.
I am from New Zealand and have set me PC regional settings accordingly.
Our date format is 26 October 2006, 26/10/06.
I have formatted the textbox with the following code:
textbox60.Value = DTPicker1.Value
textbox60 = Format(textbox6 0, "dddd d mmmm")
This works fine if the days in the month are 13th and above.
Example: Date selected 26/10/06, the text will display as:
Thursday 26 October
But if the days are below the 13th, example:02/10/06, the date will display as:
Friday 10 February
I can see what is happening, the dates are swapping to the U.S format of 10/02/06, this is extremely annoying!!
Can anyone help with some clean up code?
Yours " Visual Virgin'
Comment