Functions.CToDtAnsi 方法 | |
Convert an ANSI date string to DateTime
命名空间:
XSharp.Core
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 FUNCTION CToDtAnsi(
cDate AS STRING
) AS DateTime
public static DateTime CToDtAnsi(
string cDate
)
查看代码参数
- cDate
- 类型:String
A string in the ANSI form yyyy.mm.dd, where yy, mm, and dd represent year, month, and day respectively.
The year, month, and day can be separated by any character other than a number.
cDate is always interpreted as an ANSI string and is not dependent on SetDateFormat() or SetDateCountry().
If the century digits are not specified, the century is determined by the rules of SetEpoch().
返回值
类型:
DateTimeThe date value that corresponds to the numbers specified in
cDate. If cDate is not a valid ANSI date, CToDAnsi() returns a DateTime.MinValue.
参见