question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

initialDate option is not working

See original GitHub issue

From your example, in JSBin the initialDate option should set today’s date in the textbox, but it’s not working as expected.

$('#example2').calendar({
  type: 'date',
  initialDate: null
});

I want to show today date prefilled in the textbox and also enable user to select dates.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
coder8keyboardcommented, Aug 16, 2018

‘set date’ works fine on 0.0.8. and the latest Semantic-UI framework. This issue is probably due to initial value is null or date is invalid. If you are using a framework other than Jquery, make sure the values are not null when you creating the calendar object. For e.g. in Aurelia, you need to set @observable for initialDate variable then call ‘set date’ Also if you are using moment date object, try formatting it. E.g. ‘DD-MM-YYYY’

0reactions
icodebustercommented, Apr 20, 2017

@mdehoog set date is not working in 0.0.8 can you confirm that. The set date was working which I had used previously refer above. Also, how can I check if updateInput = true, fireChange = true is working for set date.

I am working with vue.js and when I change the date it’s not getting updated, reason, being change event is not getting triggered.

If possible please update it in JSBin with set date example.

Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

initialDate not working in bootstrap-datetimepicker?
Looking at the code it looks like the initialDate is not considered at all if your input element has a value attribute. So...
Read more >
InitialDate is not working ? · Issue #197 · smalot/bootstrap ...
today is 16 - 01 - 2014 i change to date 17 but it is not working.
Read more >
[OutSystems UI] InitialDate in Date Picker won't set. Always ...
This will work. Hi Vani,. I'm referring to a native app. The DatePicker does not have an on Initialize event, only an onSelect....
Read more >
initialDate - Docs - FullCalendar
initialDate. The initial date displayed when the calendar first loads. Date. When not specified, this value defaults to the current date.
Read more >
Notifications 3 month after initial date? - Microsoft Community
Select the custom formula option, and use this formula (change the B2 in the formula to the actual cell address). =B2<=EDATE(TODAY(),-3).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found