Maptitude GISDK Help

CreateDate()

Summary

Creates a DateTime compound variable with just a date.

 

Changes

Added to Version 2013.

 

Syntax

datetime = CreateDate([int day, int month, int year])

 

Argument

Contents

day

Day number

month

Month number

year

Full year number

 

Returns

A DateTime compound variable with missing time properties.

 

Notes

Examples

dt = CreateDate(3,1,2013)

ShowArray({dt})

ShowMessage(i2s(dt.year))

 

dt = CreateDate()

ShowMessage("Today is " + FormatDateTime(dt,))

 

See Also

Function

Summary

CreateDateTime()

Creates a DateTime compound variable

CreateTime()

Creates a DateTime compound variable with just a time

FormatDateTime()

Formats a DateTime compound variable

ParseDateTime()

Parses a string to create a DateTime compound variable

 

 

©2025 Caliper Corporation www.caliper.com