Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从 Word 文档扫描的日期是 2012 年 8 月 30 日,但是当它加载到我的程序中时,它会打印 20/10/05。下面的代码有转换它的错误。
Dim str() As String
str(1) = Convert.ToDateTime(Format("yy-MM-dd")) 有什么建议吗?
str(1) = Convert.ToDateTime(Format("yy-MM-dd"))
试试这个代码
Dim output As Date = Date.ParseExact(str(1), "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture)