📜  插值角度中的新日期 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:19.590000             🧑  作者: Mango

代码示例1
// create a method in .ts file
convertDate(date){
  return new Date(date+' UTC');//convert UTC time to Local time
}

//call the above function from .html file
{{convertDate(item.CreatedOn) | date:'medium'}}