Issue
In my application, I am getting a finish timestamp data from server side which is in this format - 2021-02-19T06:30:58 . This is in UTC.
The requirement from client is to convert this timestamp in PST hours. The format should look like Feb 19, 2021 06:30 AM (Time should be converted to PST hours) . How to do this in Angular/Typescript.
For now this is how I am doing in my html code - {{ (finishTimeStamp | date : 'MMM d, yyyy')}} and it gives the result as Feb 19, 2021.
How can I include the time as well after converting it to PST hours.
Solution
Maybe try this:
{{ (finishTimeStamp | date : 'MMM d, yyyy hh:mm a' : '-0800') }}
Answered By - Pranav Kasetti
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.