You can use other variables:
DateTime otherDate = DateTime.Now.AddMinutes(25);
DateTime tomorrow = DateTime.Now.AddHours(25);
More Related Contents:
- DateTime vs DateTimeOffset
- How to Query an NTP Server using C#?
- Parse DateTime with time zone of form PST/CEST/UTC/etc
- String was not recognized as a valid DateTime ” format dd/MM/yyyy”
- Algorithm to detect overlapping periods [duplicate]
- How can I round up the time to the nearest X minutes?
- How to get difference between two dates in Year/Month/Week/Day?
- DateTime “null” value
- Json.NET Disable the deserialization on DateTime
- How do I get the last day of a month?
- Why can’t DateTime.Parse parse UTC date
- What is the easiest way to subtract time in C#?
- DateTime.TryParse century control C#
- A type for Date only in C# – why is there no Date type?
- Parse C# string to DateTime
- DateTime ToString issue with formatting months with “mm” specifier
- Count number of Mondays in a given date range
- How can I format DateTime to web UTC format?
- Check if datetime instance falls in between other two datetime objects
- DateTime’s representation in milliseconds?
- How do I perform Date Comparison in EF query?
- DateTime conversion from string C#
- How to initialize a DateTime field?
- DateTime “null” / uninitialized value?
- Getting the first and last day of a month, using a given DateTime object
- Is there a simple function for rounding a DateTime down to the nearest 30 minutes, in C#?
- How do I use DateTime.TryParse with a Nullable?
- Conversion from milliseconds to DateTime format
- .NET DateTime to SqlDateTime Conversion
- Prevent timezone conversion on deserialization of DateTime value