feat!: convert projects to .net 5 wip

This commit is contained in:
2021-06-28 18:59:25 -04:00
parent d89739016a
commit a953521992
12 changed files with 256 additions and 0 deletions

24
Habittodo.Model/Due.cs Normal file
View File

@@ -0,0 +1,24 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace Habittodo.Model
{
public class Due
{
[JsonProperty("date")]
public string Date { get; set; }
[JsonProperty("timezone")]
public string Timezone { get; set; }
[JsonProperty("string")]
public string @String { get; set; }
public string ToJavaScriptDateStr()
{
try { return Date + "T00:00:00.000Z"; } catch { }
return null;
}
}
}