Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery datetimepicker format

$('#timePicker').datetimepicker({
   // dateFormat: 'dd-mm-yy',
   format:'DD/MM/YYYY HH:mm:ss',
    minDate: getFormattedDate(new Date())
});

function getFormattedDate(date) {
    var day = date.getDate();
    var month = date.getMonth() + 1;
    var year = date.getFullYear().toString().slice(2);
    return day + '-' + month + '-' + year;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascrip for each element of class 
Javascript :: ipv4 to int32 js 
Javascript :: node run parameters 
Javascript :: gdscript emit signal 
Javascript :: ecampus kgisl, kgcas, kgisl 
Javascript :: console.log red text on yellow background 
Javascript :: react-native array.filter by index arrow function 
Javascript :: autofocus react 
Javascript :: slug javascript 
Javascript :: multer rename file 
Javascript :: javascript split array into chuncks of 
Javascript :: day of week javscript 
Javascript :: js number to ascii 
Javascript :: ctx.filltext font size 
Javascript :: try catch in javascript 
Javascript :: how to pronounce allele 
Javascript :: how to clear innerhtml in javascript 
Javascript :: javascript date to hours minutes seconds 
Javascript :: javascript get random character from string 
Javascript :: build apk react native 
Javascript :: mongoose virtual populate not working 
Javascript :: js array for in vs for of 
Javascript :: webpack-bundle-analyzer no stats.json file 
Javascript :: remover clase jquery 
Javascript :: document.getelementsbytagname 
Javascript :: mongodb create database with username and password 
Javascript :: how to create an anchor tag in javascript 
Javascript :: javascript how to print working directory 
Javascript :: javascript scroll down 
Javascript :: Make Array Consecutive javascript 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =