小编Luc*_*cas的帖子

.NET Date Const(全球化)

有没有人知道一种声明与国际日期兼容的日期常量的方法?

我试过了:

' not international compatible
public const ADate as Date = #12/31/04#

' breaking change if you have an optional parameter that defaults to this value
' because it isnt constant.
public shared readonly ADate As New Date(12, 31, 04)
Run Code Online (Sandbox Code Playgroud)

vb.net datetime

3
推荐指数
2
解决办法
1万
查看次数

标签 统计

datetime ×1

vb.net ×1