SetBatchDateTime method

Applies to

Description

This method sets the date and time of a batch (corresponding to the #BatchDate and #BatchTime variables).

Syntax

[Nothing =] Object.SetBatchDateTime(Date, Time)

Settings

Part

Data type

Description

Object

Object

An object expression that evaluates to a COM Batch object.

Date

String

The new date. Be sure to use 4 digits for the year.

Time

String

The new time. Use one of these formats:

  • hh

  • hh:mm

  • hh:mm:ss

  • hh:mm:ss:xx (where xx is hundredths of a second)

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

Return value

None.

Remarks

Warning
  • Ensure that you do not set a time and date that conflicts with another batch with the same time and date in the database.

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

Classic method

None.