Tim Timmers
New Member
- Joined
- May 22, 2015
- Messages
- 2
Hi,
I have a user form in which I enter a date via a textbox.
The code behind the form stores the dat in a specific cell. Later I read back the date information from this cell and notice that excel gets the date wrong. When I enter the date 6 september 2016 (actually I key in 6-9-2016) the date is displayed in the excel sheet as 6-sep-2016 but when I read back the cell to display the date in a second userform the afore mentioned date comes back as 9 june 2016.
How do I get the correct date back?
I am working in a Windows 7 environment with Excel 2007.
Region an language settings in Windows under the Formats tab: English (UK); short date dd-MMM-yyyy
Location tab: Netherlands.
Can anyone help?
I have a user form in which I enter a date via a textbox.
The code behind the form stores the dat in a specific cell. Later I read back the date information from this cell and notice that excel gets the date wrong. When I enter the date 6 september 2016 (actually I key in 6-9-2016) the date is displayed in the excel sheet as 6-sep-2016 but when I read back the cell to display the date in a second userform the afore mentioned date comes back as 9 june 2016.
How do I get the correct date back?
I am working in a Windows 7 environment with Excel 2007.
Region an language settings in Windows under the Formats tab: English (UK); short date dd-MMM-yyyy
Location tab: Netherlands.
Can anyone help?