﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / T-SQL (SS2K5)  / Help with converting varchar to datetime / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 14:18:40 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Help with converting varchar to datetime</title><link>http://www.sqlservercentral.com/Forums/Topic709162-338-1.aspx</link><description>This solves my problem to a major extent. Thank you so much.</description><pubDate>Mon, 04 May 2009 00:37:43 GMT</pubDate><dc:creator>sidhartha.pooboni</dc:creator></item><item><title>RE: Help with converting varchar to datetime</title><link>http://www.sqlservercentral.com/Forums/Topic709162-338-1.aspx</link><description>Hello,I am not exactly sure where the issue is.I would expect you could import dates in the DD-MMM-YY format into a DateTime Column without problems.Once in a DateTime Column (or variable) you could use Convert to display in whichever format is necessary e.g.Declare @MyDate DateTimeSelect @MyDate = '15-Apr-09'Print Convert(VarChar(10), @MyDate, 101)Regards,John Marsh</description><pubDate>Sun, 03 May 2009 23:25:25 GMT</pubDate><dc:creator>John H Marsh </dc:creator></item><item><title>Help with converting varchar to datetime</title><link>http://www.sqlservercentral.com/Forums/Topic709162-338-1.aspx</link><description>I am inserting a few thousand rows using SSIS package reading from an Excel file. There is one particular column in Excel file that stores the date value in this manner - 15-Apr-09.I need help in converting this date value into this manner - 04/15/2009I tried writing a scalar defined function but had some issues while converting. Any kind of help will be the most appreciated.Thank youSidhartha</description><pubDate>Sun, 03 May 2009 21:50:13 GMT</pubDate><dc:creator>sidhartha.pooboni</dc:creator></item></channel></rss>