After choosing an option only date gets applied and time is neglected, is this expected? #2243
-
Code from example on daterangepicker.com I only added custom format "momentFormatVal". Or jsfiddle example with same content: https://jsfiddle.net/awjqu82c/
You can see that when you load page & both the time and date value gets set iside the span, e.g.: Now, I you choose "Last 7 days", It neglects the times and sets dates only, e.g.: "January 11, 2022 00:00 - January 17, 2022 23:59". I made some workaround but maybe I missed an option or something that achieves my desired behavior. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is as expected. You need to enable the time picker if you want users to choose specific times. If you are going to assume the current hour and minute you can modify the dates to be at that time in your callback function. |
Beta Was this translation helpful? Give feedback.
-
@dangrossman |
Beta Was this translation helpful? Give feedback.
This is as expected. You need to enable the time picker if you want users to choose specific times. If you are going to assume the current hour and minute you can modify the dates to be at that time in your callback function.