Monday, September 20, 2010

Visual Basic Date and Time Statements : Date, Date$

Purpose : The Date and Date$ statement enable the user to change the system date of a computer within a visual Basic application.

Syntax :
Date = expression$
Date = datestring$

datestring$: String that represents the date in the form of mm-dd-yy or mm-dd-yyyy
expression$: string that represents the date ( more generalized than datesrting$ )

Acceptable contents of the datestring$ argument
datestring$ Setting
mm a number between 01 and 12 inclusive
dd a number between 01 and 31 inclusive
yy a number between 00 and 99 inclusive
yyyy a number between 1980 and 2079 ( on windows NT; 2099 on windows 95 inclusive

No comments:

Post a Comment