time formatting

Results 1 to 2 of 2

Thread: time formatting

  1. #1
    Join Date
    Dec 1969

    Default time formatting

    i am new to asp but old to perl, i wanted a way in ASP to manipulate time so i can just get the hour minute and seconds separately on a 24 hour clock. thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: time formatting

    Try this, I use this all the time,<BR><BR><BR>Dim MyVar<BR>MyVar = Minute(Now) <BR>Dim MySec<BR>MySec = Second(Now) &#039 MySec contains the number representing<BR> &#039 the current second.<BR><BR>Or you can put it all together,<BR>Today is: &#060;%=WeekdayName(Weekday(Date))%&#062;&nbsp; &#060;%=Date%&#062;&nbsp; at&nbsp;&#060;%=Time%&#062; with&nbsp; &#060;%=Minute(now)%&#062;&nbsp;minutes and &nbsp;&#060;%=Second(now)%&#062;&nbsp;seconds. Something like that.<BR>Hope that helps!<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts