Section A.7. Date and Time


A.7. Date and Time

Element

Description

DateAdd Function

Returns the result of adding or subtracting a date or time

DateDiff Function

Returns the difference between two dates

DatePart Function

Returns the part (month, day, year) of the date requested

DateSerial Function

Returns a date from month, day, and year components

DateString Property

Retrieves or sets the current system date

DateValue Function

Converts the string representation of a date to a Date data type

Day Function

Returns a number representing the day of the month

GetTimer Function

Returns the number of seconds since midnight

Hour Function

Extracts the hour element from a time

Minute Function

Extracts the minutes element from a time

Month Function

Extracts the month element from a date

MonthName Function

Returns the name of the month for a given date

Now Property

Returns the current system date and time

Second Function

Extracts the seconds element from a time

TimeOfDay Property

Sets or retrieves the current system time

Timer Property

Returns the number of seconds that have elapsed since midnight

TimeSerial Function

Returns a time from its hour, minute, and second components

TimeString Property

Sets or returns the current system time

TimeValue Function

Converts a string representation of time to a Date data type

Today Property

Sets or retrieves the current system date

Weekday Function

Determines the day of the week for a given date

WeekdayName Function

Returns the weekday name for a given weekday number

Year Function

Returns the year element from a date





Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net