April 4, 2005 at 8:51 am
CONVERT(varchar(10), ProgramLOIAcknowledged ,101)
but I need to add:
AS [Letter of Intent Acknowledged]
April 4, 2005 at 8:56 am
Something like this?
SELECT CONVERT(varchar(10), ProgramLOIAcknowledged ,101) AS [Letter of Intent Acknowledged]
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
April 5, 2005 at 4:08 pm
How about this? I want the day of the month
Birthdate char(10)
SELECT substring(convert(char(2),datepart(day,BirthDate)),6,7) from FOR_UPDATE_CUST
Error: The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
April 5, 2005 at 10:56 pm
I'd have to say the data in the Birthdate column was not a valid date or date format. NULL is not a valid date during conversions.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 6, 2005 at 1:50 am
What are know the questions here?
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply