Day incorrect in datepicker
See original GitHub issueBug, feature request, or proposal:
When I select a date I see the correct date in the field but, when I save, the datepicker send the day before the date I have selected
here’s the code:
<md-form-field> <input mdInput [(ngModel)]="fareCalendar.startDate" name="startDate" [mdDatepicker]="picker" placeholder="startDate"> <md-datepicker-toggle mdSuffix [for]="picker"></md-datepicker-toggle> <md-datepicker #picker></md-datepicker> </md-form-field>
I am using angular 4 and @angular/material": "^2.0.0-beta.10
but the date:
How can I send the UTC date
Issue Analytics
- State:
- Created 6 years ago
- Reactions:23
- Comments:46 (19 by maintainers)
Top Results From Across the Web
day incorrect in angular material datepicker - Stack Overflow
If the hour of the date is lower than 12, it means the date is the day tomorrow and you need to correct...
Read more >jquery ui datepicker showing wrong date — DataTables forums
I want to use the jquery UI datepicker in this case as it is more customizable.(I only want the user to select month/year...
Read more >Datepicker form values display wrong timezone using ... - Reddit
Datepicker form values display wrong timezone using MomentDateAdapter. I can't seem to get the date picker to set a date in my local...
Read more >day incorrect in angular material datepicker - iTecNote
i am using angular reactive form and MatMomentDateModule for date picker . the problem is related to timezones but i just want to...
Read more >Datepicker in Angular using mat-datepicker | Material Design
To implement date picker in Angular we can use angular material datepicker ... For example to display date along with day use format...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mmalerba shouldnt the datepicker not support timezones
its for selecting only date
if i am selecting date of birthday it shouldnt change according to different time zones
I made my self a workaround by overriding the MomentJS DateAdapter compiling the date from UTC and then converting it into the locale date:
The important line being: