I am using ASP.NET with SQL Server 2005.
My date get saved in the database with data type = "smalldatetime".
I am displaying the date value into a text box called txtDate with a Reader......
Dim conn As Data.SqlClient.SqlConnection
Dim Comm As Data.SqlClient.SqlCommand
Dim reader As Data.SqlClient.SqlDataReader
conn = New Data.SqlClient.SqlConnection(..............)
Comm = New Data.SqlClient.SqlCommand( _
("SELECT * FROM Table1 WHERE Age = 88"), conn)
conn.Open()
reader = Comm.ExecuteReader()
If reader.Read() Then
txtDate.Text = reader.Item("theDate").ToString
End If
reader.Close()
conn.Close()
But currently my date get displayed as "2008/06/30 12:00:00 AM" and i want to display it as "30 June 2008".
How can this be done?