Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
分析给定的字符串并返回新的 DateTimeWithTimeZone。
Public Shared Function Parse( ByVal val As String ) As DateTimeWithTimeZone
public static DateTimeWithTimeZone Parse(string val)
val 形式为 "yyyy-MM-dd HH:mm:ss.ffffff SHH:mm" 的字符串,其中 S 是时区小时偏移的符号,而第二个 HH:mm 是时区偏移。时间的小数部分可以忽略。时区偏移可以被忽略。如果存在时区偏移,则可以忽略符号。
System.FormatException 当给定的字符串与其格式不匹配时,则抛出此异常。