Number to Date
From: Miguel Salles (MiguelSalles_at_discussions.microsoft.com)
Date: 09/27/04
- Previous message: anonymous_at_discussions.microsoft.com: "Re: SUBSTRING question"
- Next in thread: Anith Sen: "Re: Number to Date"
- Reply: Anith Sen: "Re: Number to Date"
- Reply: Steve Kass: "Re: Number to Date"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Sep 2004 10:59:04 -0700
Hi,
I have a legacy system that uses a strange date format, wich I'd like to
convert for datetime on a new table.
The date is in this format: 104001(2004-01-01), 104002(2004-01-02),
104271(2004-09-27)
I think that I'll have to break the problem in two parts:
The year - three first digits + 1900
the day - three last digits (dy) day of the year.
I can generate the days by using "datepart(dy,date)", but how can i make the
way back? (to transform 271 in 09-27)
Thanks for your help.
- Previous message: anonymous_at_discussions.microsoft.com: "Re: SUBSTRING question"
- Next in thread: Anith Sen: "Re: Number to Date"
- Reply: Anith Sen: "Re: Number to Date"
- Reply: Steve Kass: "Re: Number to Date"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|