public DateTime GetEndOfTheDayInMinute(DateTime dt)
{
return GetEndOfTheDay(dt).AddSeconds(-59);
}
public DateTime GetEndOfTheDayInSecond(DateTime dt)
{
return GetEndOfTheDay(dt).AddMilliseconds(-999);
}
public DateTime GetEndOfTheDayInMillisecond(DateTime dt)
{
return GetEndOfTheDay(dt).AddTicks(-9999999);
}
public DateTime GetEndOfTheDay(DateTime dt)
{
return dt.Date.AddDays(1).AddTicks(-1);
}
作者:KKcat