Home
C# / C Sharp
2D Graphics
Class Interface
Collections Data Structure
Components
Data Types
Database ADO.net
Date Time
Design Patterns
Development Class
Event
File Stream
Generics
GUI Windows Form
Internationalization I18N
Language Basics
LINQ
Network
Office
Reflection
Regular Expressions
Security
Services Event
Thread
Web Services
Windows
Windows Presentation Foundation
XML
XML LINQ
Date Time Calculation « Date Time « C# / C Sharp
C# / C Sharp
Date Time
Date Time Calculation
1.
Add 2 month to the date time
2.
Add TimeSpan to DateTime
3.
use the Add() method to add a TimeSpan to a DateTime
4.
use the overloaded addition operator (+) to add a TimeSpan to a DateTime
5.
use the AddYears(), AddMonths(), AddDays(), AddMinutes(), and AddSeconds() methods to add periods to a DateTime
6.
Measures the time taken to add some numbers
7.
Add TimeSpan to a new DateTime
8.
Add the specified number of days to a DateTime
9.
Add hours to a DateTime
10.
Add two DateTime value together
11.
Add milliseconds to DateTime