2011-07-30 233 views

回答

0
Dim result As Date = Date.ParseExact(dt, "yyyyMMddHHmmss", System.Globalization.CultureInfo.InvariantCulture) 

然後根據要求,我們可以對其進行格式化。

4

這將是:

Dim result As Date = Date.ParseExact(datestring, "yyyyMMddHHmmss") 
+0

其次:Dim formattedDate As String = result.ToString(「M/d/yyyy hh:mm:ss tt」) – drf

0

它可以...

Dim CustomDate As Date = Date.ParseExact(yourdate, "MM/dd/yyyy hh:mm:ss tt", Globalization.DateTimeStyles.None)