Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

bootstrap datepicker date format

//Bootstrap datepicker change date format solution , Jquery datepicker is under this solution
If by ID: just change "#datepicker" to your input field id
$('#datepicker').datepicker({
    format: 'dd/mm/yyyy'
});

If by Class: just change "#datepicker" to your input field class
$('.datepicker').datepicker({
    format: 'dd/mm/yyyy'
});

//jquery datepicker change date format solution
just change "#datepicker" to your input field id
$("#datepicker").datepicker({
 	dateFormat: 'dd-mm-yy'
});
Comment

Bootstrap datepicker mindate today

 $('#yourInputId').datepicker({
                    startDate: new Date(),
                    format: 'dd/mm/yyyy', //you can change date format to any
                    autoclose: true,
 					todayHighlight: true,
 					startDate: new Date(), //this will be today's date
 					endDate: new Date(new Date().setDate(new Date().getDate() + 5))
                });
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript test if string starts with alphabet 
Javascript :: document.on chenage jquer 
Javascript :: jquery select dropdown option 
Javascript :: get last word in string js 
Javascript :: for in loop javascript 
Javascript :: Uncaught TypeError: Object prototype may only be an Object or null: undefined 
Javascript :: javascript close window on button click 
Javascript :: ajax jquery 
Javascript :: node js sqlite3 
Javascript :: how to push array into array in angular 
Javascript :: react inject component into another component 
Javascript :: deep merge nested objects javascript 
Javascript :: json limit express 
Javascript :: javascript urlsearchparams to object 
Javascript :: automatically select current date in date input javascript 
Javascript :: js set datetime 
Javascript :: append element to specific class 
Javascript :: date range filter 
Javascript :: lodash partial match 
Javascript :: responsive calc height react native 
Javascript :: generate random string react 
Javascript :: JavaScript Splitting a string using a regular expression 
Javascript :: how to make a clock in js 
Javascript :: javascript form post json data 
Javascript :: set navigation drawer to open by default react native 
Javascript :: if cart empty shopify 
Javascript :: is javascript good 
Javascript :: react js date ago 
Javascript :: react tostify 
Javascript :: axios send post to php 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =