Thursday, May 25, 2006

A bit of free format RPG...

...and we're not talking about dungeons and dragons here, we're talking dates.

So, we need a character representation of a Timestamp with a space between the date and the time retaining any leading zeros and we don't want date separators but we do want time separators. OK?

Simple, you just need to use some built in functions like this...

String =
%trim(%editw(%dec(%date(%timeStamp):*YMD):'0 ')) +
space +
%trim(%editw(%dec(%time(%timeStamp):*HMS):'0 : : '));


I'm off for a lie down.