i got this date where user can enter a date in a text box with a char(10) format. so there is no checking on user entered date. lets say the date format user entered is 06112001, how can i set the logic to verify to make it mm/dd/yyyy format? how can i know whether 06 is month or day and same with 11 is month or day? if i do a check say dd>0 && dd<32 and mm>0 && mm<13 how it knows its month or day if its 06?