Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

input type datetime-local is not working in firefox

Tags:

I have an input type of datetime-local which is working fine in chrome but when i try to run the same page in firefox it shows text box instead of datepicker.I have tried using modernizer but still the problem exist can anyone tell me how could the datetime-local issue can be fixed in firefox.

<div class="form-group" ng-class="{'has-error': vm.basicInfoForm.validFrom.$invalid && (vm.basicInfoForm.validFrom.$dirty || vm.basicInfoForm.$submitted)}">                <label translate >.NEW.STARTDATE</label>                <input type="datetime-local" name="validFrom"  class="form-control" name="fromdate" ng-model="vm.basicInfo.validFrom"/>                <span class="help-block error-block basic-block" translate>.NEW.CHECKDATE</span>             </div> 
like image 465
Nidhin Kumar Avatar asked May 28 '18 13:05

Nidhin Kumar


People also ask

Does Firefox support datetime-local?

6.42 Oct 2021 The datetime-local input type is now implemented in Firefox 93.

What is input type datetime-local?

The input element with a type attribute whose value is " datetime-local " represents a control for setting the element's value to a string representing a local date and time (with no timezone information).

What format is datetime-local?

DD/MM/YYYY.

What is the difference between datetime and datetime-local?

The difference between the two is that the datetime-local input does not include the time zone. If the time zone is not important to your application, use datetime-local. Some browsers are still trying to catch up to the datetime input type.


1 Answers

Is not supported, check their documentation https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Browser_compatibility

like image 129
Pablo Pazos Avatar answered Sep 21 '22 16:09

Pablo Pazos