Look at the min and max date/time values : Date Time « Development Class « C# / C Sharp

C# / C Sharp
1. 2D Graphics
2. Class Interface
3. Collections Data Structure
4. Components
5. Data Types
6. Database ADO.net
7. Design Patterns
8. Development Class
9. Event
10. File Stream
11. Generics
12. GUI Windows Form
13. Language Basics
14. LINQ
15. Network
16. Office
17. Reflection
18. Regular Expressions
19. Security
20. Services Event
21. Thread
22. Web Services
23. Windows
24. XML
25. XML LINQ
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
C# / C Sharp » Development Class » Date TimeScreenshots 
Look at the min and max date/time values
 


using System;
using System.Globalization;

class MainClass {
    public static void Main() {
        
        Console.WriteLine("Min Date: {0}", DateTime.MinValue.ToString());
        Console.WriteLine("Max Date: {0}", DateTime.MaxValue.ToString());

    }
}

 
Related examples in the same category
1. Current date and time
2. Add 2 month to the date time
3. What day of the month is this?
4. Do some leap year checks
5. Output DateTime object
6. Add TimeSpan to DateTime
7. Constructors of DateTime
8. comparisons between DateTime objects
9. Parse and ParseExact
10. DateTime Now and its calculation
11. new DateTime(1900, 2, 29)
12. new DateTime(1900, 2, 29, new JulianCalendar())
13. Specify Kind DateTime
14. Offset of DateTime
15. DateTime and TimeSpan Instances
16. use the Now and UtcNow properties to get the currrent date and time
17. display the Date, Day, DayOfWeek, DayOfYear,Ticks, and TimeOfDayProperties of myDateTime
18. use the Compare() method to compare DateTime instances
19. use the overloaded less than operator (<) to compare two DateTime instances
20. use the Equals() method to compare DateTime instances
21. use the DaysInMonth() method to retrieve the number of days in a particular month and year
22. use the IsLeapYear() method to determine if a particular year is a leap year
23. use the Parse() method to convert strings to DateTime instances
24. use the Add() method to add a TimeSpan to a DateTime
25. use the Subtract() method to subtract a TimeSpan from a DateTime
26. use the overloaded addition operator (+) to add a TimeSpan to a DateTime
27. use the overloaded subtraction operator (-) to subtract a TimeSpan from a DateTime
28. use the AddYears(), AddMonths(), AddDays(), AddMinutes(), and AddSeconds() methods to add periods to a DateTime
29. Measures the time taken to add some numbersMeasures the time taken to add some numbers
30. Illustrates the use of DateTime and TimeSpan instancesIllustrates the use of DateTime and TimeSpan instances
31. Displays the words 'Hello World!' on the screen, along with the current date and timeDisplays the words 'Hello World!' on the screen, along with the current date and time
32. illustrates the use of TimeSpan properties and methodsillustrates the use of TimeSpan properties and methods
33. A simple clockA simple clock
34. Estimates pi by throwing points into a square. Use to compare execution timesEstimates pi by throwing points into a square. Use to
              compare execution times
www__.ja_v___a2__s___._c__o_m | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.