Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

That Date/Time thingy

Status
Not open for further replies.

wniatbms

Programmer
Dec 5, 2003
24
0
0
ZA
Good day to you all.

To display the date like 24-May-2004 I use:
<%Response.Write (Day(Date) & "-" & Monthname(Month(Date)) & "-" & Year(Date))%>

Now if I have stored a date like that in my Access DBase, how do I retrieve it in that same format? Ie, the field name "myDate", if viewed in Access comes out 05/22/2004. How do I use that little script above to format myDate when view in a browser?

Any help much appreciated.

William
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top