|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Date() driving me INSANE!!!
Hi there
I have this report and I don't know since when did it start to be a problem. The report of the header I print the date when the report is generated, so it looks like: response.write "<DIV align='right'><font face=arial size=1><i>Generated on " & Date() & ".</i></font></DIV><BR>", 0 As simple as that. Now, I'm running the server on my own machine, and I looked at Control Panel's Regional setting, my short date format is yyyy-MM-dd, and my long date format is MMMM d, yyyy I have added a few languages for input such as 2 chinese languages and a English US. (I use English Canada, but on the Regional Options tab I have it set to English Canada, so I'm assuming the settings there are my default settings). So why the h___ is the report showing today's date (6 April 2006) as 4/6/2006????? I was totally expecting 2006-04-06 according to my short date format. Any other place that I need to look at? Thanks CC |
|
#2
|
|||
|
|||
|
In case I wasn't clear - I was using VBscript as my language in this ASP page.
Thanks |
|
#3
|
|||
|
|||
|
Hi...
I found a better example. Here is a piece of code Code:
<%@ Language="VBScript" %>
<html>
<body>
<%
response.write "Server date is: " & Date() & "<BR>"
%>
and<BR>
<script type="text/vbscript">
document.write("Client date is: ")
document.write(Date)
</script>
</body>
</html>
And so why the following is the output (i'm running the IIS on my own machine) Server date is: 4/6/2006 and Client date is: 2006-04-06 Any help is appreciated. Thanks CC |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Date() driving me INSANE!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|