hanyadikhetvan-dotnethf/HanyadikHetVan/DTO/HanyadikHetVanDTO.cs

17 lines
343 B
C#
Raw Permalink Normal View History

2021-05-03 15:56:38 +02:00
using System;
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;
}
}