how to use bootstrap datepicker in laravel 5.2

Published 2 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
2 months ago (1,970 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

Sign In or create a forum account to participate in this discussion.