Navigation:  Module 1 - Energy Accounting > Accounts & Invoices Tab > User Defined Components > Functions >

DateTime

Previous page Next page
  rev. 2011-02-09        

DateTime

Description:

Creates an object representing a specific date and time.

Syntax:

DateTime(year, month, day, hour, minute, second)

Type:

DateTime

Arguments:

Argument

Type

Description

year

Numeric

The year.

month

Numeric

The month (1 to 12).

day

Numeric

The day of the month.

hour

Numeric

The hour (0 to 23)

minute

Numeric

The minute (0 to 59)

second

Numeric

The second (0 to 59)

Returns:

A DateTime object representing the specified date and time.

Examples:

To create a date representing Jan 20 2009 5:35 PM.

Expression

Result

DateTime(2009,1,20,17,35,0)

1/20/2009 5:35:00 PM



S2_DateTime_Function         ©2014 Managing Energy Inc.