📄 vbs99.htm
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML><HEAD><TITLE>DateValue Function</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="PRODUCT" CONTENT="Visual Basic Scripting Edition">
<META NAME="TECHNOLOGY" CONTENT="SCRIPTING">
<META NAME="CATEGORY" CONTENT="Language Reference">
<META NAME="Keywords" CONTENT="DateValue function,dates converting,dates"><META NAME="Description" CONTENT="DateValue Function"></HEAD><BODY BGCOLOR=FFFFFF LINK=#0033CC>
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<FONT FACE="Verdana, Arial, Helvetica" SIZE=2>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR VALIGN=TOP><TD WIDTH=360>
<FONT SIZE=1 COLOR=#660033>Microsoft® Visual Basic® Scripting Edition</FONT><BR>
<FONT SIZE=5 COLOR=#660033><B>DateValue Function</B></FONT>
</TD>
<TD ALIGN=RIGHT>
<FONT SIZE=2> <A HREF="vbstoc.htm">Language Reference</A> <BR>
<A HREF="vbs16.htm">Version 1</A> <P></FONT>
</TD></TR>
</TABLE>
<FONT SIZE=2><P>
<A HREF="vbs100.htm">See Also</A></FONT>
<HR noshade SIZE=1>
<H5>Description</H5>
<BLOCKQUOTE>Returns a <b>Variant</b> of subtype <b>Date</b>.</BLOCKQUOTE>
<H5>Syntax</H5>
<BLOCKQUOTE><b>DateValue(</b><i>date</i><b>)</b><P>
The <i>date</i> argument is normally a <A HREF="vbs0.htm#defStringExpression">string expression</A> representing a date from January 1, 100 through December 31, 9999. However, <i>date</i> can also be any expression that can represent a date, a time, or both a date and time, in that range.</BLOCKQUOTE>
<H5>Remarks</H5>
<BLOCKQUOTE>If the <i>date</i> argument includes time information, <b>DateValue</b> doesn't return it. However, if <i>date</i> includes invalid time information (such as "89:98"), an error occurs.<P>
If <i>date</i> is a string that includes only numbers separated by valid <A HREF="vbs0.htm#defDateSeparators">date separators</A>, <b>DateValue</b> recognizes the order for month, day, and year according to the short date format you specified for your system. <b>DateValue</b> also recognizes unambiguous dates that contain month names, either in long or abbreviated form. For example, in addition to recognizing 12/30/1991 and 12/30/91, <b>DateValue</b> also recognizes December 30, 1991 and Dec 30, 1991.<P>
If the year part of <i>date</i> is omitted, <b>DateValue</b> uses the current year from your computer's system date.</BLOCKQUOTE>
<hr noshade size=1>
<p align=center><em><a href="../../common/colegal.htm">© 1997 by Microsoft Corporation. All rights reserved.</a></em></p>
</FONT></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -