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

ParseDateTime

Previous page Next page
  rev. 2011-02-09        

ParseDateTime

Description:

Creates a DateTime instance from a variety of string date representations.

Syntax:

ParseDateTime(strDateTime)

Type:

DateTime

Arguments:

Argument

Type

Description

strDateTime

String

The string representation of the date (and time).

Returns:

A DateTime instance representing the date/time specified within the string argument.

Examples:

Expression

Result

ParseDateTime(Jan 20 2009 5:35 PM)

1/20/2009 5:35:00 PM

ParseDateTime(2009-1-20 17:35)

1/20/2009 5:35:00 PM



S2_ParseDateTime_Function         ©2014 Managing Energy Inc.