Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Date StatementThis standard VB function sets the computer's date. SyntaxIn the preceding string forms, the placeholders are interpreted as follows: ReturnsUsageIf the dollar sign ($) is omitted, expression can be a string containing a valid date, a variant of vartype 7 (date), or a variant of vartype 8 (string). If expression is not already a variant of vartype 7 (date), Date attempts to convert it to a valid date from January 1, 1980, through December 31, 2099. Date uses the Short Date format in the International section of Windows Control Panel to recognize day, month, and year if a string contains three numbers delimited by valid date separators. In addition, Date recognizes month names in either full or abbreviated form. ExampleThis example changes the computer's date to a date entered by the user. Sub Button_Click See Also |
Siebel VB Language Reference |