API Datepicker range option for startdate and enddate

i would like to set, in a migration script, for my AppMessage contentfield, a startDate field and a enDate field , both being a datepicker with timeZ option set.
this was quite easily done.

But i would like to add the conditions like startDate should be prior to endate, and startdate could not be prior to current date .

i didn t find any ressource in order to set those kind of restriction in the migration script

is it possible to do so ?

Thanks in advance for the help