|
-
Oct 16th, 2001, 02:39 AM
#1
Thread Starter
Junior Member
Getting Server Date
How do I get the server date.
When all the code is executed at the server side why doesn't
date() function retrieve the server date.
I had given something like this <%dt=date()%> in my code to
get the server date. so dt has the server date here.
Lemme know the difference please.
Thanks in advance...
bhav
--------
Sometimes you are happy quetching
even when you know there is a solution for it
-
Oct 16th, 2001, 03:25 AM
#2
Fanatic Member
Hi manjeera
I can't actually remember wether ASP supports the date function in the same way VB uses it, but you can use Now() instead.
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Oct 16th, 2001, 07:15 AM
#3
Good Ol' Platypus
Remember to format it if you don't want the time =)
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Oct 16th, 2001, 08:08 AM
#4
Fanatic Member
as in dt = FormatDateTime(Now(),vbShortDate)

Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Oct 17th, 2001, 03:15 PM
#5
Everything withing ASP script <% %> is server side. IT means that if you use Date or Now you will always get server's date/time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|