How would I get the date 180 days ago using C#?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Its best to record UTC...
DateTime.Now.AddDays(-180)
DateTime.Now.AddDays(-180)
EDIT:
It's important to put it into a separate variable otherwise the value will be lost.