DateValue()
Syntax: DateValue(StringDate as String) as Date
The DateValue function assignes a specific data to a type Date variable. Converting a string representation of a date into a Date value.
Parameters: The StringDate can be different date formats in string, the following are a few examples:
- "January 10 2007"
- "January 10" - defaults to current system year
- "Jan 10 2007"
- "10/Jan/2007"
- "10/01/2007"
- "10/Jan/2007 14:10:10" - won't return the time portion
- Read more about DateValue()
- Log in or register to post comments
Now()
Returns the system date and time as a type Date.
- Read more about Now()
- 3 comments
- Log in or register to post comments
Date()
Returns the system date (no time information).
- Read more about Date()
- Log in or register to post comments
Time()
Returns the current system time (no date information).
- Read more about Time()
- Log in or register to post comments
TimeValue()
Use the TimeValue function to create time values for type Date variables.
- Read more about TimeValue()
- Log in or register to post comments
TimeSerial
Use the TimeSerial function to create time values for type Date variables.
For TimeSerial, the values are normally in the range 0 to 23 for hours, and 0 to 59 for minutes and seconds. Larger values wrap to the next larger unit; therefore, a seconds value of 90 corresponds to one minute and 30 seconds
- Read more about TimeSerial
- Log in or register to post comments
Day()
Syntax: Day(DateValue as Date) as integer
Day(date) Returns a value 1–31 representing the day of the month
Parameter: The DateValue must be a valid date.
- Read more about Day()
- Log in or register to post comments
Hour()
Hour(date) Returns a value 0–23 representing the hour of the day
- Read more about Hour()
- Log in or register to post comments
Minute()
Minute(date) Returns a value 0–59 representing the minute of the hour
- Read more about Minute()
- Log in or register to post comments
Month()
Month(date) Returns a value 1–12 representing the month of the year
- Read more about Month()
- Log in or register to post comments