Ask a Question related to ASP Database, Design and Development.
-
John Berman #1
Date() Format
Hi
Im trying to get a mm/dd/ccyy format and can nearly do this using date()
however
I for 02 Feb 2004 I get
2/2/2004 and I want 02/02/2004
Regards
John Berman
[email]john_berman@blueyonder.co.uk[/email]
John Berman Guest
-
Date Format
I have a form with an unbound combo box which contains a list of choices: "Current Month";"Previous Month";"Current Year", etc. When the user... -
Format a date
My database stores the date as mm/dd/yyyy How can I return this in the format of say: Tuesday- December 21, 2005 -
PHP date format
Accoding to the manual, if I want to display the a date in the format "May 31st, 2005 I should use the following code: <p> The event will held on... -
Date Format pb
Hi, Got a pb with american date format MM/dd/YYYY. My WebService Method convert String to Date. It works good except for one case : 1/5/2005 ... -
converting date into database date format(newbie)
Hi! U can convert "8-Aug-03" into mysql date which requires yyyy-mm-dd format as below. <?php date("Y-m-d",strtotime("8-Aug-03")); ?> -
Evertjan. #2
Re: Date() Format
John Berman wrote on 03 mrt 2004 in microsoft.public.inetserver.asp.db:
The European way:> Im trying to get a mm/dd/ccyy format and can nearly do this using date()
> however
>
> I for 02 Feb 2004 I get
>
> 2/2/2004 and I want 02/02/2004
>
function two(x)
if x<10 then
two = "0" & x
else
two = "" & x
end if
end function
function date2text(x) ' input m/d/yyyy output dd/mm/yyyy
a = split(x,"/")
date2text = two(a(1)) & "/" & two(a(0)) & "/" & a(2)
end function
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest
-
Aaron Bertrand [MVP] #3
Re: Date() Format
[url]http://www.aspfaq.com/2313[/url]
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"John Berman" <John_berman@blueyonder.co.uk> wrote in message
news:NGs1c.274$E%5.174@news-binary.blueyonder.co.uk...> Hi
>
> Im trying to get a mm/dd/ccyy format and can nearly do this using date()
> however
>
> I for 02 Feb 2004 I get
>
> 2/2/2004 and I want 02/02/2004
>
>
> Regards
>
> John Berman
> [email]john_berman@blueyonder.co.uk[/email]
>
>
Aaron Bertrand [MVP] Guest



Reply With Quote

