You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
695 B

import { Component, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatCardModule } from '@angular/material/card';
import { Season } from '../../models/season.model';
@Component({
selector: 'app-season-card',
standalone: true,
imports: [
CommonModule,
MatCardModule
],
templateUrl: './season-card.component.html',
styleUrl: './season-card.component.scss'
})
export class SeasonCardComponent {
@Input() season?: Season;
getStartingDate() {
if(this.season != undefined) {
let date = new Date(0);
date.setUTCSeconds(Number(this.season.startingDate));
return date.toUTCString();
}
return "";
}
}