Skip to main content

Questions tagged [datepicker]

A datepicker is a user interface element in many frameworks that allows a user to choose a date and also, in some cases, time, often through a visual calendar. When including this tag, it would advantageous to also include details regarding the specific data picker being used as they each have different properties/options/functionality.

5,832 questions with no upvoted or accepted answers
13 votes
3 answers
2k views

Cannot select years BC

I'm working on a project that need to handle dates BC (eg 100BC, or 2000BC) as well as 2014AC etc.. In the API documentation of Datepicker, it is stated that minDate and maxDate can be set using ...
Odys's user avatar
  • 9,020
11 votes
2 answers
4k views

setSpinnersShown and setCalendarViewShown on DatePicker deprecated in API level 24

I tried to switch to calendar to spinner mode in DatePicker by changing setSpinnersShown and setCalendarViewShown value programmatically, but in API 24, Android Studio shows the deprecated warning. ...
Vinh Nguyen's user avatar
10 votes
0 answers
2k views

Change date format of ipywidgets.DatePicker

How to change format of dates for DatePicker from ipywidgets? Default format is 'mm/dd/yyyy' and I want to set it to 'yyyy-mm-dd'?
Slavka's user avatar
  • 1,110
10 votes
1 answer
5k views

How to style an date input's calendar icon in Firefox > 108?

In older versions of Firefox (until 109), it was possible to select the date picker's icon like in Chromium: input[type="date"]::-webkit-calendar-picker-indicator { display: none; /* Hides ...
kslstn's user avatar
  • 1,576
9 votes
2 answers
4k views

Week selection in mat datepicker angular6

I want to add the functionality to Material Date picker to be able to select Weeks.. So when I select one date from a row,, I want it to output a date range from the beginning of the week to the end ...
Mo Bdair's user avatar
  • 243
9 votes
1 answer
4k views

Choose only year and month in Datepicker Material for Angular 5

I use material (https://material.angular.io/components/datepicker/overview) for angular 5. Can we choose in the DatePicker only year and month (I do not want to choose day, day must be choose by ...
Alex's user avatar
  • 651
8 votes
0 answers
1k views

Is there a way to hide the native Safari and Firefox datepicker

There doesn't seem to be any way to hide the native datepicker from Safari and Firefox. Any ideas? Or should I just scrap the <input type="date" /> and use a normal <input type=&...
Dimitar Nizamov's user avatar
8 votes
1 answer
432 views

Updating angular from 1.2 to 1.3 broke my directive

I have the following directive which I put on input fields that use the angular-ui-bootstrap datepicker: angular.module('directives.validators.date', []) .directive('validDate',[ '$filter', function (...
NLuburić's user avatar
  • 922
8 votes
1 answer
10k views

Datepicker for Bootstrap on mobile devices changing Format

I'm using following datepicker: (http://eternicode.github.io/bootstrap-datepicker/) for my date-Field. <input class="datepicker" style="width:100px;border-radius: 4px;" type="text" placeholder="...
JoHeAnDr's user avatar
8 votes
1 answer
688 views

BetterPickers without a support library

I am using https://github.com/derekbrameyer/android-betterpickers to use time- and date pickers for my app. However, my app does not need a support library and it seems like I need ...
vandus's user avatar
  • 3,268
8 votes
0 answers
364 views

Is there a way to count down more than 1 day using UIDatePickerModeCountDownTimer?

I'm using UIDatePicker's countdown timer mode (UIDatePickerModeCountDownTimer) to handle countdowns. However the default picker only goes up to 24 hours. Is there a way to get around this? Or is ...
Vlad's user avatar
  • 8,138
8 votes
3 answers
12k views

Bootstrap Datepicker scrolling issue

Experiencing a strange scrolling issue on my website where the bootstrap datepicker calendar doesn't stay with the input box that its attached to. Tried my best to recreate it in a jsfiddle. (in the ...
zen_1991's user avatar
  • 629
7 votes
0 answers
2k views

SwiftUI wheel PickerStyle in custom Menu

In SwiftUI, the built in DatePicker has two buttons, each of which when clicked displaying a pop up menu with a highly customized view (a calendar, and a multi-component wheel picker respectively). ...
Ethan Kay's user avatar
  • 757
7 votes
2 answers
2k views

Two ClosedRanges for DatePicker in SwiftUI

Example of date's closed range: var dateClosedRange: ClosedRange<Date> { let today = Calendar.current.date(byAdding: .minute, value: -1, to: Date())! let seven = Calendar.current.date(...
Ritik's user avatar
  • 81
7 votes
1 answer
16k views

Android: How to style the DatePicker?

I would like to style the DatePicker, but I cannot find how. I would like to edit the layout (whose reference can be found here: https://android.googlesource.com/platform/frameworks/base/+/...
Daniele B's user avatar
  • 20.6k

15 30 50 per page
1
2 3 4 5
389