Hello, I have date format issue.
The date: 25 th of December 2011
In spain they write the date: 25/12/2011
In USA they write the date: 12/25/2011
In Sweden they write the date: 2011-12-25
They problems occur if people change the region settings. I write the date to an MS SQL Server database and the value 25/12/2011 is not a valid date.
Is is possible in VBA in excel to convert the date to as string variable with the "The international standard date notation" YYYY-MM-DD that I can write to the SQL server.
Cheers Gustaf
The date: 25 th of December 2011
In spain they write the date: 25/12/2011
In USA they write the date: 12/25/2011
In Sweden they write the date: 2011-12-25
They problems occur if people change the region settings. I write the date to an MS SQL Server database and the value 25/12/2011 is not a valid date.
Is is possible in VBA in excel to convert the date to as string variable with the "The international standard date notation" YYYY-MM-DD that I can write to the SQL server.
Cheers Gustaf