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
c=txtyyyy.Text
d=b&"/"&a&"/"&c
dob=Dateparse(d)
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: