I am attempting to achieve a specific format using Angular's formatDate
"2019-01-01T00:00:00Z"
Here is the code I am using:
formatDate(
'2019-01-01',
'yyyy-MM-ddT00:00:00Z',
'en-US'
)
The output I am getting is 2019-01-01T00:00:00+0200
The 'Z' in the timestamp is being replaced by the time zone. Is there a proper way to get the desired format?