Description | Example | Return Message | Group

ConvertDate

Convert a date from one format to another. (Deprecated Command)

Syntax

ConvertDate <ScenarioPath> {InputFormat} {OutputFormat} "<DateTime>"

ATTENTION: THIS COMMAND IS DEPRECATED and has been replaced by:

Units_Convert

Description

Note: This command was deprecated in STK 10.1, it should no longer be used. This command has been replaced by the Units_Convert command.

The ConvertDate command allows you to convert a date from one format to another format. This doesn't affect the current date format set at the scenario level. "<DateTime>" is the date to be converted. {InputFormat} and {OutputFormat} can be (these values are case-insensitive):

Note: Some conversions may Nack due to limitations of the various date formats. For example, the Julian local date is generally restricted to the years between 1950 and 2050.

Example

To perform a quick conversion from epoch seconds to Gregorian UTC:

ConvertDate * EPOCHSEC GREGUTC "12300.0"

ReturnMessage

CONVERTDATE 22
1 Jan 2000 03:25:00.00

Group Membership

This command belongs to the following group(s):

Scenarios

Deprecated Commands

Version

10.1

STK Programming Interface 11.0.1