i even tried using
set intDate [clock scan "$iDate"] **************** it seems it does not
like variable iDate. The value coming in iDate is in format 20010426
set showDate [clock format "$intDate" "%a%m%/%d" ]
any idea???????????/
Prakash
-----Original Message-----
From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf
Of Rob Mayoff
Sent: Thursday, April 26, 2001 5:19 PM
To: [EMAIL PROTECTED]
Subject: Re: [AOLSERVER] Format Date
> 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]