ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






CONSTANTS:  Date Format

Date Format Constants

You may use either the CONSTANT (left column) or the VALUE (center column) in your code and get the same results.

CONSTANTVALUEDESCRIPTION
VBGeneralDate0Display the date and time using system settings
VBLongDate1Display the date in long date format
June 26, 1943
VBShortDate2Display the date in short date format
6/26/43
VBLongTime3Display the time in long time format
3:48:01 PM
VBShortTime4Display the time in short time format (24 hour clock)
15:48