Dim str As String = "2014-06-10 17:41:38.760"
Dim str1 As Date = Convert.ToDateTime(str)
Dim strres As String = Format(str1, "yyyy-MMM-dd hh:mm:ss")
result : 2014-Jun-10 05:41:38
Dim str1 As Date = Convert.ToDateTime(str)
Dim strres As String = Format(str1, "yyyy-MMM-dd hh:mm:ss")
result : 2014-Jun-10 05:41:38
No comments:
Post a Comment