Siebel VB Language Reference > Quick Reference: VB Statements and Functions >

VB Date and Time Functions


The following functions and statements are for use with date and time information.

Function or Statement
Purpose
For More Information

Date Function

Returns the current date

Date Function

Date Statement

Sets the computer's date

Date Statement

DateSerial

Returns the date value for year, month, and day specified

DateSerial Function

DateValue

Returns the date value for the string specified

DateValue Function

Day

Returns the day of month component of a date-time value

Day Function

Hour

Returns the hour of day component of a date-time value

Hour Function

IsDate

Determines whether a value is a legal date

IsDate Function

Minute

Returns the minute component of a date-time value

Minute Function

Month

Returns the month component of a date-time value

Month Function

Now

Returns the current date and time

Now Function

Second

Returns the second component of a date-time value

Second Function

Time Function

Returns the current time

Time Function

Time Statement

Sets the current time

Time Statement

Timer

Returns the number of seconds since midnight

Timer Function

TimeSerial

Returns the time value for the hour, minute, and second specified

TimeSerial Function

TimeValue

Returns the time value for the string specified

TimeValue Function

Weekday

Returns the day of the week for the specified date-time value

Weekday Function

Year

Returns the year component of a date-time value

Year Function

Siebel VB Language Reference