Reply To: Date Format

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Date Format Reply To: Date Format

#58704
Rentian Huang
Participant

    Tom, try this:

    Code:

    set d 20040517123045
    set mo [clock format [clock scan [crange $d 0 7]] -format “%b”]
    set out “${mo}-[crange $d 6 7]-[crange $d 0 3] [crange $d 8 9]:[crange $d 10 11]:[crange $d 12 13]”

    This is dirty but it works. Change %b to %B if you need full month name.

    Sam  8)