Forums

ASP

This topic is locked

Arghh - Dates!

Posted 02 May 2007 14:21:06
1
has voted
02 May 2007 14:21:06 Daniel Brown posted:
Hey there...this has been perplexing me for hours!

I'm using the little script I found on here to get my date in UK date format:

<%
varUKdate = DAY(Date()) &"/"& MONTH(Date()) &"/"& YEAR(Date())
%>

I'm having a problem, as it is currently returning the date as, for example, 2/5/2007, where what I need is 02/05/2007.

How can I force it to display twin digits for the day and month values?

Many thanks,

Dan

Replies

Replied 04 May 2007 10:33:42
04 May 2007 10:33:42 pedro notirk replied:
search for formatting DATES with ASP or VB


by the way where you from?

yeah! bling bling men...abz'

Reply to this topic