Need to get formatted date. But following code is not working , both date and time are viewed. (need only to view the date part)
<div class="form-group">
<input formControlName="startDate" type="date:'dd/MM/yyyy'" class="form-control" >
</div>
when type is assigned as type="date", it does not bind with the value we patched (set) .
typeof aninputis only to instruct the browser what type of data it should expect. In case of the mobile browsers, this will change the keyboard setting to either numeric values or enable theweb addressversion of your keyboard. It doesn't do anything with parsing or checking data, there's different methods to do so both in Angular and in HTML5.