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.

Doens't show year in datepicker

See original GitHub issue

image

There is code:

var ipObj1 = {
        callback: function (val) {  //Mandatory
        },
        from: new Date(1950, 0, 1),
        to: new Date(2009, 0, 1),
        inputDate: new Date(1957, 2, 15), 
        setLabel: 'Выбрать',
        closeLabel: 'Отмена',
        mondayFirst: true,
        dateFormat: 'yyyy-MM-dd',
        closeOnSelect: false,
        templateType: 'popup' 
    };

    $scope.openDatePicker = function(){
        ionicDatePicker.openDatePicker(ipObj1);
    };

As you see at screenshot, inputDate is ok, but if month and day are selected, year is not. There is no any error. Can you help me?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Mandurocommented, May 9, 2016

This is still an issue. Even with correct from and to within the range. I’m trying to figure out why it does work in your demo, but I can’t trace it.

0reactions
yaoyonstudiocommented, May 25, 2016

@rajeshwarpatlolla

The problem seems only show on the new ionic version .

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery UI DatePicker to show year only - Stack Overflow
I am using jQuery datepicker to display calender.I want to know if I can use it to Display only 'Year' and not Complete...
Read more >
JQuery Datepicker does not show all the years
The only way around this is if I either select the oldest year which is 2003 and click on the dropdown again to...
Read more >
Date Picker does not display month and year - WordPress.org
When the date picker is selected it is displayed with two WHITE BOXES (the current month and current year are not displayed). It...
Read more >
Options — bootstrap-datepicker documentation - Read the Docs
If true, manually-entered dates with two-digit years, such as “5/1/15”, will be parsed as “2015”, not “15”. If the year is less than...
Read more >
DatePicker year and month dropdown is not showing up
Hi, I have MDB pro and after upgrading to 4.4.1 date picker is not showing year and month drop down. It was fine...
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