Gambas Documentation - /lang/date

# Date

Result = Date ( Expression )

Return the date part of a date & time expression.

### Example

    Print Now; " -> "; Date(Now)

    05/16/2002 15:10:59 -> 05/16/2002

# Date (2)

Date = Date ( Year , Month , Day [ , Hours , Minutes , Seconds ] )

Make a date from its components.

### Examples

    Print Date(1972, 09, 06, 1, 5, 17)

    09/06/1972 01:05:17

    Print Date(1972, 09, 06, 1, 5, 17)
    Print CFloat(Date(1972, 09, 06, 1, 5, 17))

    06.09.1972 01:05:17
    2473671,04533565

# Date (3)

Today = Date ( )

Return the today date.

### See also

- Date & Time Functions