请告诉我有关cdate功能的疑问

请告诉我有关cdate功能的疑问

问题描述:





有人可以告诉我这个

formatdatetime的输出是什么(cdate(dtaETA) - 2, 2)& 12:00 PM



这是来自经典asp页面的代码这里dtaETA是我们作为变量传递的日期





提前致谢



我的尝试:



formatdatetime(cdate(dtaETA) - 2,2)& 12:00 PM

Hi,

Can anybody please tell me what will be the output for this
formatdatetime(cdate(dtaETA) - 2,2) & " 12:00 PM"

this is the code from classic asp page here "dtaETA" is the date that we are passing as variable for this


Thanks in advance

What I have tried:

formatdatetime(cdate(dtaETA) - 2,2) & " 12:00 PM"

以下是FormateDateTime的文档, VBScript FormatDateTime功能 [ ^ ]。



传入2给你mm / dd / yy。 CDate将值转换为日期。所以基本上你应该以mm / dd / yy 12:oo PM结束。
Here is the documentation for FormateDateTime, VBScript FormatDateTime Function[^].

Passing in a 2 gives you mm/dd/yy. CDate converts the value to a date. So essentially you should end up with mm/dd/yy 12:oo PM.