CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    3

    Gregorian Calendar

    I want to set applications date and time.
    Date is not the system date.I am able to display date and time properly. But not able to display day.
    for e.g 2nd Aug 1999 is Monday but I am getting it as friday.
    please give solution to this problem.


  2. #2
    Join Date
    Apr 1999
    Location
    Bangalore,India
    Posts
    43

    Re: Gregorian Calendar

    I think the problem might be u would have used the month variable returned from the Gregorian Calendar which is zero-based and would have used that month to get the day value.

    Because Gregorain Calendar will return 7 for the Month value because it is zero-based. 2nd is Friday for July 1999.

    regards,
    arun...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured