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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Date Question

Status
Not open for further replies.

emblewembl

Programmer
May 16, 2002
171
GB
My server administrators say that the server date/time is set to UK English format, but I have done a test page using:

Response.Write("THE TIME IS NOW : " & Now())

and it is showing the date in US format, i.e. mm/dd/yyyy instead of dd/mm/yyyy.

The actual output is:

THE TIME IS NOW : 6/5/2003 1:35:21 PM

Is this a server issue or do I have to use some kind of asp formatting to get the date into the format I want?

Thanks for any feedback!

i love chocolate
 
faq333-3194

____________________________________________________
$str = "sleep is good for you. sleep gives you the energy you need to function";
$Nstr = ereg_replace("sleep","coffee",$str); echo $Nstr;

onpnt2.gif
 
Hi onpnt,

Thanks for the link - I know how to format the date using asp, but I need to know whether the server being set to UK English will effect the default formatting of ASP dates?

:)

i love chocolate
 
Yes!

The server is going to dictate the way the date is generated. Just as the client dictates the way the date comes out on the client level

____________________________________________________
$str = "sleep is good for you. sleep gives you the energy you need to function";
$Nstr = ereg_replace("sleep","coffee",$str); echo $Nstr;

onpnt2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top