Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to convert utc time to local time angular

if your time looks like today = '2019-08-08T08:57:59' then just concat 'z' at the end to state it as UTC then run through date pipe like

<div>{{ today+'Z' | date : 'EEEE, MMMM d, h:mm:ss' }}</div>
 
PREVIOUS NEXT
Tagged: #convert #utc #time #local #time #angular
ADD COMMENT
Topic
Name
3+1 =