A Problem With Date/Time. Please Help !!

Results 1 to 2 of 2

Thread: A Problem With Date/Time. Please Help !!

  1. #1
    JOHL Guest

    Default A Problem With Date/Time. Please Help !!

    hello. i would like to write a date like this: 28/6 15:05:55<BR>yes, thats the dateform i would like to have. (date/month h:m:s)<BR><BR>i do it with this response.write:<BR>no font face here. i took it away.<BR><BR>Response.Write "&#060;td bgcolor=&#039ffffff&#039 valign=&#039top&#039 align=&#039center&#039" & day(rs("T_date")) & "/" & month(rs("T_date")) & " " & hour(rs("T_date")) & ":" & minute(rs("T_date")) & ":" & second(rs("T_date")) & "&#060;/td&#062;"<BR><BR>it works, but if the date would be 28/6 15:00:00 ( &#060;&#060;--i want that form)<BR>it writes 28/6 15:0:0<BR><BR>Why!? Please help!!<BR><BR>I have looked at microsoft&#039s site, but i can&#039t find anything!!<BR>this.msdn.microsoft.com/scripting <BR>HELP!

  2. #2
    New ASP Guest

    Default RE: A Problem With Date/Time. Please Help !!

    Try the Build_in function:<BR><BR>FormatDateTime()<BR><BR>FormatDat eTime(Date[, NamedFormat])<BR><BR>The FormatDateTime function syntax has these parts:<BR><BR><BR>Function GetCurrentDate<BR> &#039FormatDateTime formats Date in long date <BR> GetCurrentDate = FormatDateTime(Date, 1) <BR>End Function<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