Date problem in model

Jon Thomas
Thu, 07 Dec 2006 09:55:19 -0000

hi all , i have a strange problem here.i want the date in (mm-dd-yy)
fromat. From the view i am getting the value to the controller function.
But when the date value is passed to the model for validation i come
across a strange thing. if the date entered is greater than 12 ,i get
nil value. it wroks perfectly if it si less  than or equal to 12. can
any one plz help me out.. thanks in advance.