Answers for "new date in interpolation angular"

0

new date in interpolation angular

// 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'}}
Posted by: Guest on June-01-2021

Code answers related to "new date in interpolation angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language