Geeks With Blogs
Gaurav Taneja Great dreams... never even get out of the box. It takes an uncommon amount of guts to put your dreams on the line, to hold them up and say, "How good or how bad am I?" That's where courage comes in.
Function to convert DateTime to MM/DD/YYYY format

CreateFUNCTION [dbo].[tkfunConvertDateToMMDDYYYY](@dtDate varchar(10))
    RETURNS VARCHAR(10)
AS
BEGIN
    RETURN substring(@dtDate,4,2)+'/'+substring(@dtDate,1,2)+'/'+substring(@dtDate,7,4)
END Posted on Tuesday, April 1, 2008 9:41 PM SQL SERVER | Back to top


Comments on this post: Function to convert DateTime to MM/DD/YYYY format + SQL SERVER

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Gaurav Taneja | Powered by: GeeksWithBlogs.net