请告诉我有关cdate功能的疑问 [英] Please clear me a doubt regarding cdate function

查看:97
本文介绍了请告诉我有关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.


这篇关于请告诉我有关cdate功能的疑问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆