date <%=date()%>

M

Mick

Please can someone tell me how to display the date from this as "Tue 14
October 2008" and not "14/10/2008" thankyou.
 
S

Stefan B Rusynko

<%=FormatDateTime(Date(),VBLongDate)
See http://www.devguru.com/technologies/vbscript/quickref/dateformatcon.html
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Please can someone tell me how to display the date from this as "Tue 14
| October 2008" and not "14/10/2008" thankyou.
|
 
M

Mike Mueller

A source I frequent for date functions is the W3Schools page for VBScript-
http://www.w3schools.com/VBscript/func_formatdatetime.asp

FormatDateTime(Date, 2) is what you are currently using
FormatDateTime(Date, 1) is what you are seeking

Note that these are based on regional/language settings of the server. If
your server was setup to the US versions of date/time, the output will be
different:
"Tue 14 October 2008" will become "Tue October 14 2008"
and
"14/10/2008" will become "10/14/2008"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top