Dim enGB As System.Globalization.CultureInfo = New System.Globalization.CultureInfo("en-GB")
Dim dtDate as datetime
dtDate=Convert.ToDateTime(dpadmitdate.text, enGB)
---------------------------------------------------------------------------------------
To show date time from database in a different format(AM and PM
lbldate.Text = Convert.ToDateTime(dsResult.Tables(0).Rows(0)("CreatedDate").ToString()).ToString("dd-MMM yyyy hh:mm tt")
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment