Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: mdb-pro Datepicker manual entry

Kaddour Fellah free asked 5 years ago


Hello,I have two questions1) How to enable manual entry in a date field with Bootstrap Date Picker.

<input type="text" id="DateDebut" name ="DateDebut" data-value="2019/10/01" class="form-control datepicker validate"  required>

2) How to check if the start date is less than the end date Thanks for your help kaddour

  $('.datepicker').pickadate({
    monthsFull: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre',
        'Novembre', 'Décembre'],
    weekdaysShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
    showMonthsShort: true,
    today: 'aujourd\'hui',
    clear: 'effacer',
    formatSubmit: 'yyyy-mm-dd'
})

Piotr Glejzer staff commented 5 years ago

First question.
Do you need something to put data without click on that input or do you want to click but not display a date picker?
Second question.
https://stackoverflow.com/questions/36556566/materialize-datepicker-prevent-end-date-before-start-date
is that what you need?


Kaddour Fellah free commented 5 years ago

It's perfect, thank you



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: serveur
  • Browser: chrome
  • OS: Ubuntu
  • Provided sample code: No
  • Provided link: No
Tags