: DateTime : Date Time C# Examples
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
C# Examples
»
Date Time
»
DateTime
»
1
2
302.1 .
Use the FromFileTime() method to convertan operating system file timestamp to a DateTime
Hits: 2374
302.2 .
Use the ToFileTime() method to convert a DateTime to an operating system file timestamp
Hits: 2706
302.3 .
Use the AddYears(), AddMonths(), AddDays(), AddMinutes(), and AddSeconds() methods to add periods to a DateTime
Hits: 2256
302.4 .
Use the overloaded subtraction operator (-) to subtract a TimeSpan from a DateTime
Hits: 1957
302.5 .
Use the overloaded addition operator (+) to add a TimeSpan to a DateTime
Hits: 1946
302.6 .
Use the IsLeapYear() method to determine if a particular year is a leap year
Hits: 1966
302.7 .
Use the DaysInMonth() method to retrieve the number of days in a particular month and year
Hits: 2093
302.8 .
Use the Equals() method to compare DateTime instances
Hits: 2024
302.9 .
Use the overloaded less than operator (
Hits: 2105
302.10 .
Use the Compare() method to compare DateTime instances
Hits: 1855
302.11 .
Display the Date, Day, DayOfWeek, DayOfYear, Ticks, and TimeOfDayProperties of DateTime
Hits: 1958
302.12 .
Use the Now and UtcNow properties to get the currrent date and time
Hits: 1892
302.13 .
Create a TimeSpan instance, and add it to DateTime
Hits: 1990
302.14 .
Create a DateTime instance, specifying the number of ticks
Hits: 2292
302.15 .
Create a DateTime instance, specifying the year, month, day, and JulianCalendar object
Hits: 1994
302.16 .
Create a DateTime instance, specifying the year, month, day, hour, minute, second, and millisecond
Hits: 1979
302.17 .
Create a DateTime instance, specifying the year, month, and day
Hits: 1978
302.18 .
Add seconds to current time
Hits: 2380
302.19 .
Create a TimeSpan representing 1 week and subtract from a DataTime
Hits: 1966
302.20 .
Create a DateTime with the current date and time
Hits: 1868
C# Examples
Date Time
»
DateTime
DateTime
TimeSpan
DateTime Now
TimeSpan Parse
DateTime Format
Stopwatch
DateTime Parse ParseExact
ADO.Net
Assembly
Attribute
Class
Data Structure
Data Type
Date Time
Delegate
Design Patterns
Development
Directory Services
Drawing 2D
File Directory Stream
Generic
GUI Windows Forms
I18N Internationalization
Language Basics
Network
Operator
Operator Overload
Preprocessing Directives
Reflection
Regular Expression
Security
Statement
String
Struct
Thread
Unsafe
Windows
XML