SetDateTime(NewDate As String, NewTime As String) As Integer

Form object

Use this method to change the creation date and time of a form.

For NewDate, use a four-digit year.

For NewTime, use one of these formats:

You can replace the colon with any character, for example a period or space.

If any argument is omitted (empty string), the value is not modified. That is, if you include only NewTime, then the form’s creation date remains unchanged, and vice versa.

Return values

Return value

Description

0

Success.

1

Invalid time string (NewTime argument).

2

Invalid date string (NewDate argument).

3

Failure (database problem).

Remarks

Warning

The method does not work if you specify a 2-digit year.

 

The Form object