Next Up Previous Contents
Next: format-date-old
Up: Common functions for the Starlink stylesheets
Previous: isspace?
[ID index][Keyword index]

format-date

Description

Returns a string with the formatted version of the date. If the string is not in the correct format, it returns the input string, and evaluates the (error) function. I'd like to use (error) at the end, rather than silently returning just d, but I cannot work out how to evaluate more than one expression one after another!

Argument list
d = string (Given)

The string should be in the form dd-MMM-yyyy (one- or two-digit day, 3-character month abbreviation, four-digit year), and may include whitespace.

Return value

Type: string

Formatted into english


Next Up Previous Contents
Next: format-date-old
Up: Common functions for the Starlink stylesheets
Previous: isspace?
[ID index][Keyword index]