Results 1 to 2 of 2

Thread: DateTimePicker question [resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    ...Wherever God wants me...
    Posts
    125

    Resolved DateTimePicker question [resolved]

    It's late and my brain is having a lot of trouble with this issue...

    I have a datetimepicker on my form and what I want to do is set a variable to be the date that represents the first day of the week depending on what the user selects.

    A couple of things have to be considered:

    (1) The first day of the week can be set to any day (monday - sunday) by the user so it could be different depending on different user's needs. This is an integer stored as gFirstDayofWeek.

    (2) If the user selects a date that is a Friday and has selected Sunday as the first day of the week, then the system needs to find out what that Sunday's date is. Example, user selects Friday, July 1 2005 in the DTP. The system does a calculation of some-sort and stores 6/26/05 as the first day of the selected week in a variable called fDay.

    Item (2) is the part I can't seem to get to work correctly. Any ideas?


    Last edited by xxlauvillx; Jul 1st, 2005 at 03:06 AM. Reason: Resolved
    to the power of X

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    ...Wherever God wants me...
    Posts
    125

    Re: DateTimePicker question [resolved]

    I figured it out... it was yet another stupid mistake!
    to the power of X

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