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.

3104 questions
245
votes
12 answers

jQuery date/time picker

I've been looking around for a decent jQuery plugin that can handle both dates and times. The core UI DatePicker is great, but unfortunately I need to be able to take time in as well. I've found a few hacks for the DatePicker to work with times,…
Chelsea
  • 6,461
  • 5
  • 27
  • 31
152
votes
7 answers

DateTimePicker: pick both date and time

Is it possible to use DateTimePicker (Winforms) to pick both date and time (in the dropdown)? How do you change the custom display of the picked value? Also, is it possible to enable the user to type the date/time manually?
Grzenio
  • 33,623
  • 43
  • 148
  • 226
107
votes
1 answer

Bootstrap date and time picker

Suggest me any JavaScript to pick the date and time . NOTE: I want to use only one file for date and time picking. I already see this: http://www.eyecon.ro/bootstrap-datepicker/ and http://jdewit.github.com/bootstrap-timepicker/index.html
Aravindhan
  • 3,430
  • 7
  • 23
  • 40
74
votes
9 answers

How to get only the date value from a Windows Forms DateTimePicker control?

I'm building an application with C# code. How do I get only the date value from a DateTimePicker control?
srinivas
  • 1,293
  • 3
  • 13
  • 16
68
votes
8 answers

How can I make a DateTimePicker display an empty string?

I would like to be able to display a DateTimePicker that has a default value of nothing, i.e. no date. For example, I have a start date dtTaskStart and an end date dtTaskEnd for a task, but the end date is not known, and not populated initially. I…
brasskazoo
  • 68,343
  • 22
  • 59
  • 74
59
votes
7 answers

Angular-Material DateTime Picker Component?

I imported a date picker in a project and was wondering if there was any official recent component from angular and material to include time in the calendar as well. I've seen plenty of time pickers in material documentation and researched a lot of…
55
votes
5 answers

Is there any good and free Date AND Time Picker available for Java Swing?

Is there any good and free Date AND Time Picker available for Java Swing? There are a lot date pickers available but no date AND time picker. This is the closest I came across so far: Looking for a date AND time picker Anybody?
LazyCoder
54
votes
2 answers

Why does JavaScript Date.getTimezoneOffset() consider "-05:00" as a positive offset?

I noticed that for us on Eastern Time zone ("America/New_York") with timezone offset of "-05:00" Date.getTimezoneOffset() returns a positive number of 300. I would expect offset in minutes to be negative in areas to the West from Utc, and to be…
vkelman
  • 1,161
  • 1
  • 11
  • 21
52
votes
4 answers

Date and time picker dialog

I want to create a dialog which can select the time and the date at the same time. I know that there is not a default widget that can do that on Android. I also know that there are open source projects on how do similar staff. The problem in this…
haythem souissi
  • 3,426
  • 6
  • 47
  • 76
49
votes
5 answers

Remove timezone from a moment.js object

I'm using datetimepicker.js and its date function returns a moment.js object. It does so with the local UTC offset in it and my original date has a different offset. My original date: 2015-10-01T15:00:00.000Z What I display on the date time picker…
Alvaro
  • 37,936
  • 23
  • 138
  • 304
35
votes
5 answers

Set default format of datetimepicker as dd-MM-yyyy

I have a datetimepicker which on loading of windows form shows me format in 'MM-dd-yyyy', as follows: I would like it in dd-MM-yyyy. I tried the following: set custom format: "dd-MM-yyyy" But Its not changing. What could be the problem? Please help…
C Sharper
  • 6,958
  • 19
  • 73
  • 132
29
votes
13 answers

DateTimePicker time picker in 24 hour but displaying in 12hr?

I'm using the bootstrap ready date time picker from http://eonasdan.github.io/bootstrap-datetimepicker/ and it's working nicely but for one issue. I have a picker setup just from time as so: $(function () { $('#startTime,…
RegDHunter
  • 375
  • 2
  • 5
  • 9
29
votes
4 answers

Convert date and time to milliseconds in Android

I have Date and Time from DatePicker and TimePicker. Now i want to change the selected date and time into milliseconds. How can I do this??? For Example I have Date selected 2-5-2012 and Time is 20:43 Now I have to convert this Date Time into…
Ahmad Abbasi
  • 1,746
  • 5
  • 28
  • 43
28
votes
13 answers

Set default time in bootstrap-datetimepicker

I want to set default time in this datetimepicker as 00:01 for the current date. Anyone tried that before? Having a tough time with it. It Seems simple. $('#startdatetime-from').datetimepicker({ language: 'en', format: 'yyyy-MM-dd…
change
  • 2,530
  • 6
  • 28
  • 40
27
votes
9 answers

jquery datetime picker set minDate dynamic

I guys i'm using a datetimepicker by trentrichardson.com. I have a form with two input fields : from and to and i want to be able to set dynamically a minDate to my "to" field equal to the value of my "from" field. I know i should use a beforShow…
luca
  • 34,346
  • 27
  • 81
  • 123
1
2 3
99 100