today date formated

This commit is contained in:
Equilibrium ITO
2024-03-20 15:01:48 +01:00
parent 850ed54633
commit 04c3288f98
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -219,7 +219,7 @@
<div class="timeline-date align-center" *ngIf="isSelectedDayHasEvent && hasEventToday"> <div class="timeline-date align-center" *ngIf="isSelectedDayHasEvent && hasEventToday">
<span >Hoje,&nbsp;</span> {{ timelineDate }} <span >Hoje,&nbsp;</span> {{ todayDateFormat() }}
</div> </div>
<div class="ss-timeline timeline-mobile flex-grow-1 pr-10 text-black height-100 width-100 overflow-y-auto" > <div class="ss-timeline timeline-mobile flex-grow-1 pr-10 text-black height-100 width-100 overflow-y-auto" >
+7
View File
@@ -62,6 +62,8 @@ export class AgendaPage implements OnInit {
contacts: EventPerson[] contacts: EventPerson[]
todayDateFormated: string;
setView(view: CalendarView) { setView(view: CalendarView) {
this.view = view; this.view = view;
} }
@@ -1206,6 +1208,11 @@ export class AgendaPage implements OnInit {
return true return true
} }
todayDateFormat() {
this.todayDateFormated = momentG(new Date(), 'dd MMMM');
return this.todayDateFormated;
}
} }
function endOfMonth(myDate) { function endOfMonth(myDate) {