ASP.net very simple problem - very unusual.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is crazy,

The following page:

-------------------------------------------------------------
<%@ Page Language="VB" Debug="true" %>
<html>
<head>
</head>

<body>
<%=WeekDayName(Weekday(Today))%>
</body>

</html>
-------------------------------------------------------------

Returns "tomorrows day" on my server, every time. Today it shows Tuesday.
If I change the date on my server clock to Tuesday 22nd November 2005, this
script will return a "Wednesday" - it is always out by a day.

I can obviously use this to fix temporarily:
<%=WeekDayName(Weekday(Today)-1)%>

But, I would love to figure out the problem.

Any ideas?

Regards,

Gary.
 
I am curious why you are asking this question in a Windows Forms group...

I am more than happy to ease your curiosity. I have extremely limited
access to usenet, and this was one of the only "dotnet"ish groups available
to me at the time of writing.

Regards,

Gary.
 
I'm just guessing here, but does it have anything to do with the
FirstDayOfWeekValue that can also be passed to the WeekDay and WeekDayName
functions??

What regional settings does your server have?
 
Back
Top