Hi all

In my costum module one field as DATE OF BIRTH is there and i have set that field datatype as DATE.

I want that field should accept date before the current date. It should show error if i go for current or next to current date.

Plz anyone help me ,what should i do.....
1-> If to write code then wat type of validation code and plz give the whole code if possible.
2->if ur suggestion goes for coding part then where to put those code..


I am using sugarcrm 5.1....

I need this very badly and very urgently ....plz anyone resolve this.......


Thanx in advance