我想显示今天而不是不显示数值中的 Date(23-07-2020)。可能吗?
像这张照片我需要将日期显示为今天或昨天
var today = new Date();
var date = String(today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate());
var time = today.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
var dateTime = date+' '+time;
this.dateTimeValue = dateTime;