Hi, I hope this is the correct forum to ask this question!
We have received a SQL backup file of data which we are transferring from an existing database into a new database.
There are several 'date' fields in the existing data which have the date stored as an integer. The format of this information is a 7-digit integer, with the first 4 digits being the year, and the remaining 3 digits being the number of days into that year. So, examples include:
1987278 is actually 05/10/1987 (October 5th is 278 days into 1987)
2004112 is actually 21/04/2004 (April 21st is 112 days into 2004)
etc. etc.
In the new database we are transferring this information into, we want these fields to be proper DateTime field types, so the above examples would be stored as the actual date.
How would I go about this?
Many Thanks in advance.
We have received a SQL backup file of data which we are transferring from an existing database into a new database.
There are several 'date' fields in the existing data which have the date stored as an integer. The format of this information is a 7-digit integer, with the first 4 digits being the year, and the remaining 3 digits being the number of days into that year. So, examples include:
1987278 is actually 05/10/1987 (October 5th is 278 days into 1987)
2004112 is actually 21/04/2004 (April 21st is 112 days into 2004)
etc. etc.
In the new database we are transferring this information into, we want these fields to be proper DateTime field types, so the above examples would be stored as the actual date.
How would I go about this?
Many Thanks in advance.