◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Date and Time Command Summary ■ Visual Basic provides several different ways to manipulate and use date and time values: ◄Date and Time Formats► Used to format date/time output (FORMAT$) ◄DAY Function► Returns the day of the month from a serial number ◄HOUR Function► Returns the hour from a serial number ◄DATE$ Function► Returns the current system date (dd-mm-yyyy) ◄DATE$ Statement► Sets the current system date ◄DATESERIAL Function► Returns a serial number from y%, m%, d% arguments ◄DATEVALUE Function► Returns a serial number from a date string ◄FORMAT$ Function► Converts a number to a string and formats it ◄MINUTE Function► Returns the minute from a serial number ◄MONTH Function► Returns the month from a serial number ◄NOW Function► Returns serial number equal to current date/time ◄ON TIMER Statement► Branches to a specified routine after n seconds ◄SECOND Function► Returns the seconds from a serial number ◄Serial Numbers► Defines Visual Basic date/time code conventions ◄TIME$ Function► Returns the current system time (hh:mm:ss) ◄TIME$ Statement► Sets the current system time ◄Timer Control► Runs a procedure at a set time interval ◄Timer Event► Occurs when timer control interval has elapsed ◄TIMESERIAL Function► Returns a serial number from h%, m%, s% arguments ◄TIMER Statement► Enables/disables/suspends timer event trapping ◄TIMEVALUE Function► Returns a serial number from a time string ◄WEEKDAY Function► Returns the day of the week from serial number ◄YEAR Function► Returns the year from serial number See: ◄Keywords by Task►