bootstrap-datetimepicker icon indicating copy to clipboard operation
bootstrap-datetimepicker copied to clipboard

InitialDate is not working ?

Open vijaykumbhani opened this issue 12 years ago • 8 comments

capture

today is 16 - 01 - 2014 i change to date 17 but it is not working

capture

vijaykumbhani avatar Jan 16 '14 10:01 vijaykumbhani

Try:

$(document).ready(function() {
  $('#datetimepicker').datetimepicker({
    ....options
  });
});

or however you want to initialize.

Also 'startDate' option sets the minimum date that can be selected. Hope this helps.

TonyMK9068 avatar Jan 17 '14 02:01 TonyMK9068

Actually hitting this issue too. Code is contained within jQuery's ready function:

$('#setQuoteDate').datetimepicker({
    pickTime:    false,
    language:    'en',
    startDate:   new Date(),
    initialDate: tomorrowOrMonday // A Date object set to the next day, or the following monday.
});

Nessworthy avatar Apr 03 '14 15:04 Nessworthy

Yeah, initial date does not work at all, I always get the an empty input.. grrrr

makzumi avatar Jun 19 '14 16:06 makzumi

I hate to be the guy that resurrects old threads, but is/was there a fix for this? I'm running in to the same issue.

octopushugs avatar Jul 27 '16 00:07 octopushugs

+1

newscloud avatar Aug 08 '17 06:08 newscloud

+1

rsmike avatar Sep 16 '17 13:09 rsmike

yeah...

Kielan avatar Nov 16 '17 21:11 Kielan

It doesn't seem like this repo is being maintained

AaronLavers avatar Dec 07 '17 03:12 AaronLavers