How can I change default GML date format?


Question

How can I change the default date format returned by &DATE from the American format to UK format? September 30th, 1953 ---> US format 30 September 1953 ---> UK format

Answer

 The 'right' way is to modify the DSM#Snn macro ('nn' depends
 on your installation) per the instructions in Chapter 3
 the DCF GML Imp Guide. If you don't want to do it that way,
 the following hack at the top of your source
 file should do it:

 .se x = index '&date.' ' '
 .se x = &x. - 1
 .se mon = SUBSTR '&date.' 1 &x.
 .se date '&SYSDAYOFM &mon. 19&SYSYEAR

 It pulls the month string from the current &date then
 reconstructs and resets the symbol.

 Katie Huxford, Boulder

Last updated: 94/09/01 16:22:25

Previous Contents Next