-1

We're in a need to select multiple dates with a time. Not a range, need to select random dates. But multiDatesPicker only selecting multiple dates alone without time.

Checked some of the gems like datepicker and dateTimePicker, but no use. Any gem or blog suggestion to achieve selecting multiple dates with time?

date_picker

3
  • question should properly formatted include only required tags , output image, your error code, what exact error Commented Nov 25, 2022 at 6:06
  • @MAYURSANCHETI I've added a screen shot for date picker to select single date. Now I needed a date picker to select multiple dates with time as in a shared screen shot Commented Nov 25, 2022 at 6:45
  • multiple date select means ? can you add code also Commented Nov 25, 2022 at 8:37

1 Answer 1

0

your tags are wrong , if you need in jquery then below will help you.

but below needs small bootstrap-datepicker.js file, try it .

   $('.date').datepicker({
  multidate: true,
format: 'dd-mm-yyyy'
});
 

 
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
       <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/js/bootstrap-datepicker.js"></script>

    <div class="container">
        <h3> Multi Select Date Picker</h3>
        <input type="text" class="form-control date" placeholder="Pick the multiple dates">
    </div>

comment if any query

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.