From e93f188390e0b55e6ffb6be6265b2d705b0f55e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 9 Feb 2021 15:33:22 +0100 Subject: [PATCH] write parsed date --- HanyadikHetVan.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HanyadikHetVan.cs b/HanyadikHetVan.cs index c2a9a02..bc7037a 100644 --- a/HanyadikHetVan.cs +++ b/HanyadikHetVan.cs @@ -7,6 +7,7 @@ namespace hanyadikhetvan { public class HanyadikHetVan { - public int HanyadikHet => DateTime.Now.Subtract(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE"))).Days / 7; +# public int HanyadikHet => DateTime.Now.Subtract(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE"))).Days / 7; + public DateTime HanyadikHet => DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE")); } }