Esempio n. 1
0
    public static string ToSqlConstant(this SmallDate source)
    {
        var          dateTime = source.ToDateTime();
        const string format   = "yyyyMMdd";

        return($"'{dateTime.ToString(format, CultureInfo.InvariantCulture)}'");
    }
    public FoundationDateTimeInterval ToFoundationDateTimeInterval()
    {
        var start = Start.ToDateTime();
        var end   = End.ToDateTime().AddDays(1);

        return(new FoundationDateTimeInterval(start, end));
    }