Questions tagged [datetime-local]
23 questions
0
votes
0 answers
Input type time, step attribute not working
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 basic inputs, datetime-local, date and time, taken…

GiLA3
- 359
- 1
- 5
- 16
0
votes
2 answers
How to set default value for Input fields of datetime-local type created dynamically using Vuejs/Nuxtjs?
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 direct field, we can assign the value using the…

BATMAN_2008
- 2,788
- 3
- 31
- 98
0
votes
0 answers
How do I map a `datetime-local` form control value to an epoch time property and back in Angular Reactive Forms?
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=0,
) {}
}
I have a form with a…

Vihung
- 12,947
- 16
- 64
- 90
0
votes
1 answer
restrict previous dates in datetimelocal input
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(function(){
let elem =…

Jehan Fernando
- 13
- 3
0
votes
1 answer
Nuxtjs/Vuejs set the default date time as current date time for the input field of type datetime-local
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 AngularJS but for some reason, it is not working in…

BATMAN_2008
- 2,788
- 3
- 31
- 98
0
votes
2 answers
Create input for open booking times?
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
6:00

Aipo
- 1,805
- 3
- 23
- 48
0
votes
0 answers
how can datetime-local have min value?
i have asp textbox like that:
i want that all of the dates (and times) will be in the future.
if it was i would write in the…

אברהם אנסבכר
- 1
- 2
-1
votes
1 answer
how to set date in input type datetime-local using jquery?
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
- 159
- 2
- 11