Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
2 answers
72 views

I'm automating a test using Selenium (Node.js) and trying to set a value for a datetime-local input. The UI visually shows the correct date/time, but when I inspect the element after driver.sleep(), ...
Yasela Wathsala's user avatar
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
227 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
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
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
2 votes
2 answers
258 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
0 votes
1 answer
277 views

my code was working fine untill i added two datetime input fields,every time i click submit it says failed, the two columns in mysql database are datetime type a message in red displays on the top of ...
user21781868's user avatar
0 votes
0 answers
470 views

whenever i try to fill in datetime field i get this error in red : The expire does not match the format Y-m-d\TH:i:s.How can i fix this? here is my code: validation rules 'dis' => 'required|...
user21781868's user avatar
0 votes
0 answers
82 views

i want to have an input feild where i can choose date and time in the future from the current date i tried lot of solutions but when i try to choose a datetime it's giving me to choose between a time ...
user21781868's user avatar
0 votes
0 answers
458 views

In this case, I would like to change the time interval to every 15min, like 1:00,1:15,1:30,1:45 in the right hand side selection part. which will display 00,15,30,45 only instead of 30,31,32 like ...
Andy Qu's user avatar
0 votes
1 answer
1k views

I know that you can set defaultvalues inside useForm hook and reset it by reset() from 'react-hook-form'. But I'm not able to set value and min attribute to new Date() so that each time when form ...
neo-the-coder's user avatar
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
0 votes
0 answers
1k views

First of all, there are some questions here on SO on this topic, but none of them provide a solution or practical suggestion to reach the goal, so I'll try my own question. Here's the code with some ...
GiLA3's user avatar
  • 419
-1 votes
1 answer
1k views

i want to set date with this format 2022-09-22T16:03 in input datetime-local when i click button Enregister but not work, i try this post 1link but not work also this link 2link not work. <...
achraf bourki'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
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
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
0 votes
1 answer
37 views

I have used following code snippet to restrict previous dates in datetimelocal input. It works fine but it returns seconds and milliseconds too. How to get only hours and minutes? $(document).ready(...
Jehan Fernando's user avatar
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
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
237 views

i have asp textbox like that: <asp:TextBox ID="TextBoxExitTime" TextMode="DateTimeLocal" runat="server"></asp:TextBox> i want that all of the dates (and ...
אברהם אנסבכר's user avatar