Skip to main content

Convert value from string to date format in SQL Server 2008

Dim ydate = "16/12/2007"
Dim edate As Date = Date.ParseExact(ydate, "dd/MM/yyyy", System.Globalization.DateTimeFormatInfo.InvariantInfo)

Comments

  1. Blogging is the new poetry. I find it wonderful and amazing in many ways.

    ReplyDelete

Post a Comment