How do I set the mindate for a datetimepicker using PHP

How do I set the mindate for a datetimepicker using PHP

I have a page with a datetimepicker on it as per the link below.

I want to (when the page loads) one time only set the min and max date/timestamp ranges for the DTP based on a database query that runs when the page loads.

Can't seem to get that to work. Anyone got a clue please?

sorry but I am a bit of a novice with java stuff, and don't see how it works with the PHP to exchange ideas.

The values for min/max date ranges will vary depending on the database entries.

DateTimePicker example

Cheers
Greg