I'm using filter to format date string.
$filter('date')(
"2016-01-19T23:07:37Z",
'yyyy-MM-dd');
but this always returns 2016-01-20
(I'm in +1 timezone).
I tried to att optional parameter with Timezone. Already tried:
- "UTC"
- "UTC/GMT"
- "GMT"
But always I get 2016-01-20
instead of 2016-01-19
Where I made a mistake?