Questions tagged [datetimepicker]

GUI component that allows the user to select a date and a time and to display the date and time with a specified format.

DateTimePicker is used to select a date and time, and to display that date and time in the specified format. DateTimePicker makes it easy to work with dates and times because it handles a lot of the data validation automatically.

3363 questions
19
votes
3 answers

WPF DatePicker to show the time as well as the date

I have a DatePicker object in a DataGrid that successfully shows the date from the database or a property:
user3428422
  • 4,300
  • 12
  • 55
  • 119
19
votes
4 answers

Date format in Bootstrap datetimepicker

I am just working on Bootstrap datetimepicker, and I am done that. A small problem is there, I tried to change the selected date format and failed. How can I fix this? This is my code: $('.datepicker').datetimepicker({ dateFormat: "dd-mm-yy", …
VishnuPrasad
  • 1,078
  • 5
  • 17
  • 36
18
votes
1 answer

NgxMatDatetimePicker is not assignable to type MatDatepickerBase

Today I created a new Angular project using Angular 11.0.0. I then installed @angular-material-components/datetime-picker and this is part of what reads in my package.json file: ... "@angular/core": "~11.0.0", "@angular/material":…
18
votes
6 answers

how to set datetimepicker with null value if date not selected(c# winforms)

Binding b = new Binding( "Value", person, "BdayNullable", true ); dtBirthdayNullable.DataBindings.Add( b ); b.Format += new ConvertEventHandler( dtBirthdayNullable_Format ); b.Parse += new ConvertEventHandler( dtBirthdayNullable_Parse ); void…
shmandor
  • 881
  • 3
  • 14
  • 22
17
votes
9 answers

How to change format (e.g. dd/MMM/yyyy) of DateTimePicker in WPF application

I want to Change the Format of date selected in DateTimePicker in WPF Application
Rajendra
16
votes
9 answers

Bootstrap 3 Datetimepicker 3.0.0 - make a week start on Monday

There are few reasons I use Bootstrap 3 Datetimepicker 3.0.0 in my MVC 5 project. Any idea how to offset week start so it starts from Monday? Language tag also not working. $(function () { $('#PickupTime').datetimepicker({ weekStart: 1 …
16
votes
4 answers

DateTimePicker for WPF 4.0

According to this post, there's a separate DatePicker control in .net 4. I've tried it, and I don't see a good way to also let it select the time of the day. Is there an easy way to transform DatePicker into DateTimePicker by editing XAML template?…
Arsen Zahray
  • 24,367
  • 48
  • 131
  • 224
16
votes
6 answers

jQuery Datepicker and Timepicker for same input field to popup one after another

I have a Datepicker and a Timepicker in 2 separate input fields but I need to combine the 2 fields inputs into one for a database call. Wanted to know if I could only use 1 input field for both controls? first call the datepicker and the user would…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
15
votes
3 answers

DateTimePicker never updates!

I have some DateTimePickers in a form that never update. I've tried Value and Text, Invalidate() and then Update() and also Refresh()... Nothing seems to change their values from the current date! No matter what I set, the current dates are…
Vercas
  • 8,931
  • 15
  • 66
  • 106
15
votes
2 answers

How to change bootstrap datepicker date to jalali date

I'm using bootstrap date picker, but unfortunately it doesn't support jalali calender. I searched on google for conversion of it, but I didn't find anything useful. So I need to change the datepicker and customize it like this image below.
Daniel.V
  • 2,322
  • 7
  • 28
  • 58
15
votes
6 answers

How to change culture to a DateTimepicker or calendar control in .Net

How to set internationalization to a DateTimepicker or Calendar WinForm control in .Net when the desire culture is different to the one installed in the PC?
Oscar Cabrero
  • 4,168
  • 8
  • 29
  • 49
15
votes
4 answers

how to set jquery datetimepicker mindate is tomorrow

My jquery code: $('#DatePicker').datetimepicker({ timepicker : false, format : 'd.m.Y', minDate : 0 }); In this jquery i am using datetimepicker plugin.i want set min date is tomorrow date.in this code i set min date is…
nmkkannan
  • 1,261
  • 4
  • 27
  • 49
15
votes
13 answers

How to show only date in JQuery Datetimepicker addon?

I've searched high and low for an answer to my question but haven't found one, I did find two related questions though: JQuery Datepicker should display date only , jQuery UI DateTimepicker - cannot hide the time But they didn't solve my…
Robert Persson
  • 309
  • 1
  • 2
  • 9
14
votes
5 answers

React Native - Invariant Violation "RNDateTimePicker"

I'm trying to use the React Native DateTimePicker library in my app and I get the following error when I attempt to pick a date: Invariant Violation: Invariant Violation: requireNativeComponent: "RNDateTimePicker" was not found in the…
will
  • 511
  • 2
  • 11
  • 21
14
votes
5 answers

How can I set the datetimepicker dropdown to show Months only

So instead of this showing up on clicking the dropdown menu. I want the dropdown to be like this when clicked. Thanks a lot for any help. :)
Bigboss
  • 355
  • 1
  • 3
  • 17