DarkConsultant
Programmer
Hi All,
I do not know what the protocol is but I have posted this on two forums ...
I had to move a db from one server to another and several of the tables store DateTime data.
On the old server they appeared in Management Studio as dd/MM/yyyy (I will ignore the time part as this is not an issue). On the new server they appear as MM/dd/yyyy.
When this data is returned to the client I use CDate(<server data>).ToString("dd/MM/yyyy") to get the data. On the old entries I get good data but when I convert any new entries I get bad data (MM/dd/yyyy) so 12th of November becomes 11th of December.
Can the server be persuaded to return the data the same as the old entries or is there some way to detect what format I am getting?
TIA
DarkConsultant
Live long and prosper \\//
I do not know what the protocol is but I have posted this on two forums ...
I had to move a db from one server to another and several of the tables store DateTime data.
On the old server they appeared in Management Studio as dd/MM/yyyy (I will ignore the time part as this is not an issue). On the new server they appear as MM/dd/yyyy.
When this data is returned to the client I use CDate(<server data>).ToString("dd/MM/yyyy") to get the data. On the old entries I get good data but when I convert any new entries I get bad data (MM/dd/yyyy) so 12th of November becomes 11th of December.
Can the server be persuaded to return the data the same as the old entries or is there some way to detect what format I am getting?
TIA
DarkConsultant
Live long and prosper \\//