BackUp LevelNext

ParseDateTime

Returns a date/time object from a string.

See also IsDate and IsNumericDate.

Syntax

ParseDateTime(string1 [, string2 ] )

string1

String being converted to date/time object.

string2

POP or STANDARD. POP takes the date/time object passed from a POP mail server and converts it to GMT (Greenwich Mean Time). Enter STANDARD or leave empty for no conversion.

Usage

ParseDateTime is similar to CreateDateTime except that it takes a string instead of specifically enumerated date/time values.

Both ParseDateTime and CreateDateTime are provided primarily to increase the readability of code in compound expressions.

Years from 0 to 29 are interpreted as 21st century values. Years 30 to 99 are interpreted as 20th century values.

When passing a date/time value as a string, make sure it is enclosed in quotes. Otherwise, it is interpreted as a number representation of a date/time object, returning undesired results.




BackUp LevelNext

allaire

AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.