![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Fri Feb 29 16:46:39 America/Los_Angeles 2008 Hi, I'd like to know how I can convert the above string to a date. Thanks in advance. Pingx |
#3
| |||
| |||
|
|
Fri Feb 29 16:46:39 America/Los_Angeles 2008 Hi, I'd like to know how I can convert the above string to a date. Thanks in advance. Pingx |
#4
| |||
| |||
|
|
Fri Feb 29 16:46:39 America/Los_Angeles 2008 Hi, I'd like to know how I can convert the above string to a date. Thanks in advance. Pingx |
#5
| |||
| |||
|
|
Fri Feb 29 16:46:39 America/Los_Angeles 2008 Hi, I'd like to know how I can convert the above string to a date. Thanks in advance. Pingx |
#6
| |||
| |||
|
|
Fri Feb 29 16:46:39 America/Los_Angeles 2008 Hi, I'd like to know how I can convert the above string to a date. Thanks in advance. Pingx |
#7
| |||
| |||
|
|
Fri Feb 29 16:46:39 America/Los_Angeles 2008 Hi, I'd like to know how I can convert the above string to a date. Thanks in advance. Pingx |
#8
| |||
| |||
|
|
Fri Feb 29 16:46:39 America/Los_Angeles 2008 Hi, I'd like to know how I can convert the above string to a date. Thanks in advance. Pingx |
#9
| |||
| |||
|
|
Fri Feb 29 16:46:39 America/Los_Angeles 2008 Hi, I'd like to know how I can convert the above string to a date. Thanks in advance. Pingx |
#10
| |||
| |||
|
|
Check out books online and look at the convert function. It's syntax is CONVERT ( data_type [ ( length ) ] , expression [ , style ] ). I dont have access to a sql server at this moment, but I would imagine doing something like: If Fri Feb 29 16:46:39 America/Los_Angeles 2008 were in a colum named the_date... declare @date_st varchar(30) set @date_st = substring(5, 7, the_date) + substring(41, 4, the_date) + substring(11,9, the_date) convert(datetime, @date_st) This is just off the top of my head so I apologize if anythign is wrong - what I did was pull the Feb 29, add the 2008, then add the time part... and convert that to datetime. Hope this helps. -- ~lb "Pingx" wrote: Fri Feb 29 16:46:39 America/Los_Angeles 2008 Hi, I'd like to know how I can convert the above string to a date. Thanks in advance. Pingx |
![]() |
| Thread Tools | |
| Display Modes | |
| |