Change ISO Date String to Date Object - JavaScript

前端 未结 8 1735
花落未央
花落未央 2021-01-01 08:54

I am stuck in a weird situation and unfortunately,even after doing some RnD and googling, i am unable to solve this problem.

I have a date string in ISO format, lik

8条回答
  •  盖世英雄少女心
    2021-01-01 09:32

    For display purposes, you could simply do this... Given 'Date' in ISO format you could implement,

    {{Date | date:"dd MMM yy hh:mm a" }}

    A nifty trick to display (only display) the date in required format.

    Hope it helps!

提交回复
热议问题