Datetime.Set

Parent Previous Next

Datetime.Set.

Inserts the specified date and time into the current instance. Returns Self for a possible continuation of operations.


Syntax.


 Set(Integer year, month, day, hour, minute, second, millisec) : <Self>

 


Arguments:

Argument

Value range

year

month

day

hour

minute

second

millisec

1 .. 9999

1 .. 12

1 .. 31

0 .. 23

0 .. 59

0 .. 59

0 .. 999


Example:


 Datetime dtMy.Set(2050, 2, 15, 23, 50, 7, 0);

 String s := dtMy.ToString(); //Now s == "20500215 23:50:07.000";