469,642 Members | 1,243 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,642 developers. It's quick & easy.

TimeOfDay.Hours doesn't return right value


I am using DateTime class and TimeOfDay.Hours attribute to return current time. It returns right value on two servers, but in one particular server it does not return right time. I checked that server's date/time setting and there everything is fine. Could someone tell, why on this server TimeOfDay.Hours do not return right value? I appreciate help of any kind


Nov 18 '05 #1
4 1620
Try using
DateTime.Now.Hour, this should wor
Nov 18 '05 #2
Try using


this should work...obviously your page must inherit from

Let me know what happpens.
Nov 18 '05 #3
Did it work?
Nov 18 '05 #4
It works now, thanks :)

"Magnuski" wrote:
Did it work?

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.