Skip to main content
3 votes
2 answers
2k views

It is possible to set a default value for the time only or make the time optional for a datetime-local input (see this article as reference: MDN web-docs): <input type="datetime-local" value="...
Philip F.'s user avatar
  • 1,257
2 votes
2 answers
4k views

I have a problem with datetime-local picker in HTML5. I want to clear the datetime with the clear button, but this is not possible because the "required" function inside the input will not ...
Alex Manea's user avatar
2 votes
1 answer
1k views

I have a form where user can set a date and time with input format datetime-local. When the form is submitted an error appears for the start-date "Value must 11:52 AM or earlier". My local ...
Alex Manea's user avatar
2 votes
1 answer
2k views

I would like to set the value of an input:datetime-local field in Blade with data from the database but it only shows a blank placeholder values. Below is my attempt which is not working: <input ...
The Only Smart Boy's user avatar
2 votes
2 answers
260 views

I am trying to create an html datetime-local field which tells the user they can only pick from certain dates. Previous answers (such as this one - Disable certain dates from html5 datepicker) have ...
Antony's user avatar
  • 4,442
1 vote
1 answer
136 views

I need to select date from datetime-local, but I want the minutes to be preselected as '00' Like: mm/dd/yyyy --:--:00 So that if the user selects a date-time, minutes will always be set to 00. My HTML ...
newbie coder's user avatar
1 vote
2 answers
1k views

I am creating a few input fields of type datetime-local in Vuejs/Nuxtjs dynamically. I would like to set the default value for all these input fields as 2022-04-21T14:27:27.000. How to do it? For the ...
BATMAN_2008's user avatar
  • 3,642
1 vote
0 answers
759 views

I have an underlying data object that represents a timestamp property as a number representing milliseconds since Epoch. export class Activity { constructor( public timestamp: number=...
Vihung's user avatar
  • 13.5k
1 vote
0 answers
113 views

I am developing a web application in which I have multiple HTML fields of type datetime-local. Users should provide the value for this in the following format: 2022-04-01T14:44:53 Since it is a user-...
BATMAN_2008's user avatar
  • 3,642
1 vote
1 answer
31 views

I have two inputs. I want to limit date ranges to 3 days. Once selected, other dates will become inactive. How can I do?
Koray Tuncer's user avatar
0 votes
1 answer
2k views

I have a Nuxtjs/Vuejs application that contains the input field of type datetime-local. For this field, I would like to add the current DateTime as the default value. I have done similar things in ...
BATMAN_2008's user avatar
  • 3,642
0 votes
1 answer
141 views

Using the following form in Safari, if you set a date and then use the "clear" button to unset it, Safari will invalidate the form even though it's valid. It also doesn't assign the input ...
nick's user avatar
  • 3,760
0 votes
2 answers
111 views

I am looking for ideas how to create and/or fill workday times in Laravel Blade. At this moment I end up by: current code <input type="date" name="date"> <li class="list-group-item"> &...
Aipo's user avatar
  • 2,006
0 votes
0 answers
22 views

I am using an HTML <input type="datetime-local"> in my React app. I want to customize the dropdown menu that appears when the input is focused — specifically the calendar and time ...
Muhammad Shawaiz Iqbal's user avatar
0 votes
0 answers
228 views

I have a datetime-input in a HTML form with step="1". It correctly shows the seconds in the UI and when the user opens the picker, they can select seconds. However, when retrieving the value ...
Nad Hr's user avatar
  • 86

15 30 50 per page