how to use bootstrap datepicker in laravel 5.2

Published 4 months ago by Flex

I need use bootstrap datepicker start date and end date with dates counting in My Laravel app. (need save this data to database). please give me simple but good example links.

alex-greaves

https://bootstrap-datepicker.readthedocs.io/en/latest/

Requirements

Bootstrap 2.0.4+
jQuery 1.7.1+

Add a class to an input e.g. 'datepicker' and initialise datepicker on that class in jQuery:

$('.datepicker').datepicker();
saurabhd

I think you should prefer this link

Flex
Flex
4 months ago (3,080 XP)

I need dates calculations also between start date and end date...

alex-greaves

Use Carbon to find the difference:

http://carbon.nesbot.com/docs/#api-difference

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