> I want to format date into Thu04/26
>         set iDate "20010426"
>         ns_fmttime "$iDate" "%a%m/%d"
>
> It seems it does not work it returns me Thu08/20
> Any idea?????????

It's working fine.  20010426 seconds after 00:00:00 1970-01-01 UTC was
14:27:06 1970-08-20 UTC.

You might be happier using the Tcl 8 "clock scan" command, e.g.

    set iDate [clock scan 20010426]
    set oDate [clock format $iDate %a%m/%d]

Reply via email to