Torma Kristóf
2ab8648a71
All checks were successful
continuous-integration/drone/push Build is passing
20 lines
426 B
C#
20 lines
426 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace hanyadikhetvan.DTO
|
|
{
|
|
public class HanyadikHetVanDTO
|
|
{
|
|
private readonly DateTime startdate;
|
|
|
|
public HanyadikHetVanDTO(string startdate)
|
|
{
|
|
this.startdate = DateTime.Parse(startdate);
|
|
}
|
|
|
|
public int HanyadikHet => (DateTime.Now - startdate).Days / 7;
|
|
}
|
|
}
|