FormatYmdStr


The FormatYmdStr function converts a date string in YMD form to a properly formatted date string. Use this function, for example, to convert "2007, 4, 23" to "2007-04-23"

Syntax

sYmdNew = FormatYmdStr( sYmd )

bullet.gif    sYmd is the string to be converted (e.g., "2007, 4, 23").

bullet.gif    sYmdNew is the properly formatted time string (e.g., "2007-04-23").

Remarks

Use this function to clean input strings and convert them into the standard format. The standard format string can be sent to other Mira functions expecting a properly formatted date string.

Related Topics

ParseYmd

FormatDate

DayOfWeek


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.