On this Page

    -inputDateFormat

    This Merge command line option identifies the format of Date data to expect from the input xml data stream.

    Syntax

    -inputDateFormat format [;format2...]

    Description

    This command option applies only when dates are to be recognized and re-formatted by Merge. The option is applied only to form Fields which are flagged with "Format as Date". If your data stream has already pre-formatted the date and it requires no additional formatting the Field should NOT be marked as a Date field, but rather a normal Text Field.

    When the "Format as Date" option is selected the -inputDateFormat option will cause the data to be matched to one of the supplied formats and converted to the standard internal Merge date format of yymmdd. The Merge date formatting can then re-format based on whatever date format you have requested in Design and produce the required output.

    The parameter to the -inputDateFormat command is a list of one or more date formats, separated by a semicolon. Example:

    -inputDateFormat mmddyyyy;yyyy-mm-dd

    This would expect data stream dates in either mmddyyyy format or yyyy-mm-dd format. If dates are found that do not match either format, a warning message is issued into the log file.

    This command recognizes only yy, yyyy, dd, or mm as valid date designators.

    See Also

    Command Line Processing