当前位置:网站首页>asp日期函数(磁盘函数不正确怎么办)
asp日期函数(磁盘函数不正确怎么办)
2022-07-25 23:02:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。<script src=’Http://code.xrss.cn/AdJs/csdntitle.Js’></script>
asp里面有一个超好用的格式化函数:FormatDateTime
像 2007-90-3这样的格式只有用 FormatDateTime(Date,2)就好了,呵呵。
这是一个系统系 函数!
描述 返回表达式,此表达式已被格式化为日期或时间。 语法 FormatDateTime(Date[, NamedFormat]) FormatDateTime 函数的语法有以下参数:
参数 描述 Date 必选项。要被格式化的日期表达式。 NamedFormat 可选项。指示所使用的日期/时间格式的数值,如果省略,则使用 vbGeneralDate。
设置 NamedFormat 参数可以有以下值: 常数 值 描述 vbGeneralDate 0 显示日期和/或时间。如果有日期部分,则将该部分显示为短日期格式。如果有时间部分,则将该部分显示为长时间格式。如果都存在,则显示所有部分。 vbLongDate 1 使用计算机区域设置中指定的长日期格式显示日期。 vbShortDate 2 使用计算机区域设置中指定的短日期格式显示日期。 vbLongTime 3 使用计算机区域设置中指定的时间格式显示时间。 vbShortTime 4 使用 24 小时格式 (hh:mm) 显示时间。
说明 下面例子利用 FormatDateTime 函数把表达式格式化为长日期型并且把它赋给 MyDateTime: Function GetCurrentDate “FormatDateTime 把日期型格式化为长日期型。 GetCurrentDate = FormatDateTime(Date, 1) End Function
<script src=’Http://code.xrss.cn/AdJs/csdnEnd.Js’></script>
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127900.html原文链接:https://javaforall.cn
边栏推荐
- 栈与Stack类
- Hj9 extract non duplicate integers
- Zero crossing position search of discrete data (array)
- Qt5.12 installation error prompt: c:\qt5.12.11\vcredist\vcredist_ msvc2019_ x86.exe /norestart /q
- [literature reading] - HRL -[hrl with universal policies for multi step robotic control]
- 【论文笔记】基于在线预测和规划的机器人动态跟踪抓取方法
- uvm_hdl——DPI在UVM中的实现(四)
- The third programming competition of Wuhan University of technology b- save the kingdom of DAG (topological properties deal with accessibility Statistics)
- HJ9 提取不重复的整数
- PCL basic operation Encyclopedia
猜你喜欢
![[MySQL rights] UDF rights (with Malaysia)](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[MySQL rights] UDF rights (with Malaysia)

如何获取广告服务流量变现数据,助力广告效果分析?

Anaconda~Upload did not complete.

Week 2: convolutional neural network

互联网协议之 IPFS

Qt中文编程遇C2001错误,提示“常量中有换行符”

内存分页与调优,内核与用户空间

Network Security Learning (16)

Analysis of the influence of ESM direction finding error on positioning error

赋能合作伙伴,亚马逊云科技如何落地“扶上马,送一程”?
随机推荐
向下扎根,向上生长,探寻华为云AI的“根”力量
Network security and level protection
Vs2017 compilation encountered the error HResult e returned by the call of COM component_ FAIL
Network Security Learning (XIV) IP protocol
We media people must have four material websites, and don't worry about finding materials anymore
Memory paging and tuning, kernel and user space
Deploy flash based websites using Google cloud
AI chief architect 12 AICA industrial landing analysis under the industrial production process optimization scenario
Qtreewidget control of QT
Design of regular expressions
汇编语言与微机原理实验一、实验二、实验三:分支程序设计/循环程序设计/子程序设计
2020-09-17
Why is Google's internal tools not suitable for you?
Analysis of Excel file
【论文笔记】基于在线预测和规划的机器人动态跟踪抓取方法
QT string operation
[paper notes] a meta reinforcement learning algorithm for causal discovery
JVM memory area
Network Security Learning (11) scanning and blasting
【自然语言处理】【向量表示】AugSBERT:改善用于成对句子评分任务的Bi-Encoders的数据增强方法