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'}}
Are there any code examples left?
New code examples in category Javascript