Chron
2 months ago

tempus dominus

Posted 2 months ago by Chron

Is there a way to set tempus dominus' maxDate without showing it in the textbox on load?

I have this:

 $('#date').datetimepicker({
    format: 'YYYY-MM-DD',
    minDate: (new Date('1950-01-01')),
    maxDate: (new Date('2000-12-31')),
  });

When I use useCurrent: false, yes, it doesn't show the date but it starts at the current date when opened the picker. I want it to hide the text on load and start at whatever maxDate was set to.

Please sign in or create an account to participate in this conversation.