TimeOfDay.Hours doesn't return right value

Discussion in 'ASP .Net' started by =?Utf-8?B?UGV0ZXI=?=, Jun 9, 2004.

  1. Hi

    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

    Thanks

    Peter
     
    =?Utf-8?B?UGV0ZXI=?=, Jun 9, 2004
    #1
    1. Advertising

  2. Try using
    DateTime.Now.Hour, this should wor
    regards
     
    =?Utf-8?B?TWFnbnVza2k=?=, Jun 9, 2004
    #2
    1. Advertising

  3. Try using

    DateTime.Now.Hou

    this should work...obviously your page must inherit from
    System.Web.UI.Pag

    Let me know what happpens.
     
    =?Utf-8?B?bWFnbnVza2k=?=, Jun 9, 2004
    #3
  4. Did it work?
     
    =?Utf-8?B?TWFnbnVza2k=?=, Jun 9, 2004
    #4
  5. It works now, thanks :)

    "Magnuski" wrote:

    > Did it work?
    >
     
    =?Utf-8?B?UGV0ZXI=?=, Jun 10, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rahmi Acar
    Replies:
    0
    Views:
    573
    Rahmi Acar
    Jul 17, 2003
  2. Greenhorn
    Replies:
    15
    Views:
    868
    Keith Thompson
    Mar 6, 2005
  3. David Thielen

    TimeOfDay control

    David Thielen, Jun 11, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    118
    David Thielen
    Jun 12, 2006
  4. Bill

    Return Server Time + two hours?

    Bill, Mar 15, 2006, in forum: ASP General
    Replies:
    3
    Views:
    126
    Larry Bud
    Mar 16, 2006
  5. rutherf
    Replies:
    2
    Views:
    455
    rutherf
    Oct 28, 2006
Loading...

Share This Page