working with date

Discussion in 'Questions (Windows Mobile)' started by gjoisa, Mar 27, 2008.

  1. gjoisa

    gjoisa Active Member Licensed User

    Hi , I am developing a program which uses the date according to user's requirement . I cant use here date control because it takes more time to go back up to 50 years if required . So I used 2 combo boxes , 1 for date and 1 for month , and a textbox for year . I have written code like :

    a=cbdd.item(cbdd.SelectedIndex)'here cbdd is combobox for date
    b=cbmm.item(cbmm.SelectedIndex) ' cbmm is combobox for month

    but when executing the program some times it works perfectly. Some times it works wrongly ; i . e .value of 'dob' becomes "01/01/0001" if i entered the correct value in both combo boxes and textbox . What may be the reason ?:sign0085:
  2. maXim

    maXim Active Member Licensed User

    Hi gjoisa,

    In the attached file is a small example, but I do not know whether resolve your problem...
    however this will not be an elegant solution but it works...

    Best Regards


    Attached Files:

    Last edited: Mar 28, 2008
  3. gjoisa

    gjoisa Active Member Licensed User

    Thank you maxim . I will try with your suggessions. Thanks a lot Again.

    But dear Erel , can you tell me what may be the problem here ?
  4. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload your program (including the combobox values) ?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice