Print Page | Close Window

now()

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3778
Printed Date: 29 March 2026 at 11:56pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: now()
Posted By: Gullanian
Subject: now()
Date Posted: 24 June 2003 at 3:38am
Hi, on one of my sites I use date(), and it prints out the date in yanky format, does anyone know how to configure the server (IIS) so it comes out in good old UK style?



Replies:
Posted By: Gullanian
Date Posted: 24 June 2003 at 4:24am
I know I can date time format, but isnt there another way?


Posted By: aero
Date Posted: 24 June 2003 at 4:31am

YAP.

<html>
<head>
</head>
<body>
<%
Session.LCID = 1033
dt = date()
tm = time()
Response.write dt & "@" & tm
%>
<br><br><br>
<%
Session.LCID = 1030
da = date()
ti = time()
Response.write da & "@" & ti
%>
</body>
</html>

ref. http://www.javacoder.dk:56400/tid.asp - http://www.javacoder.dk:56400/tid.asp

 



Posted By: aero
Date Posted: 24 June 2003 at 4:34am

or

<%
Session.LCID = 1033
Dim MyVar
MyVar = Now
response.write MyVar
%>
<br><br><br>
<%
Session.LCID = 1030
Dim MyVar2
MyVar2 = Now
response.write MyVar2
%>

ref. http://www.javacoder.dk:56400/tid2.asp - http://www.javacoder.dk:56400/tid2.asp



Posted By: Gary
Date Posted: 24 June 2003 at 4:35am
If your host allows the use of global.asa (I think some dont) then you would most likely be better off setting the lcid in there rather than in individual asp pages.


Posted By: Gullanian
Date Posted: 24 June 2003 at 5:03am
Thanks guys!


Posted By: aero
Date Posted: 24 June 2003 at 5:15am
NP



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net