| TOTAL: 9 Page: 1 of 1 |
|
DateTimeUtils Class: IsDate
Most of you will be familiar with the VB(Script) function IsDate. Let's us try and implement the functionality in .NET. The DateTime structure is used in .NET to represent dates and times. One of its methods is Parse. That method is used to converts a specified String representation of a date and time to its DateTime equivalent. If the given string cannot be converted, the method throws an exception of type FormatException. The idea is to use this method upon the string we want to validate

| Hits: | 107 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
Comparing and Adding Dates
A function of many applications is to compare and add to dates. .NET makes this easier for the programmer through the DateTime Structure. The code below creates two DateTime structures and then uses the methods Compare and AddYears to compare the two DateTime values and then add to the second date.

| Hits: | 74 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
Working with Dates And Times
Getting and displaying dates is easy to do using .NET. Just start out by creating a new System.DateTime object and then set it too the current date using System.DateTime.Now Afterwards you can get date and time information through the properties and methods of the object. You can just copy the code below and it will output the corresponding values for each property and method.

| Hits: | 90 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
Working with Dates And Times
Getting and displaying dates is easy to do using .NET. Just start out by creating a new System.DateTime object and then set it too the current date using System.DateTime.Now Afterwards you can get date and time information through the properties and methods of the object. You can just copy the code below and it will output the corresponding values for each property and method.

| Hits: | 82 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
Using .NET's DateTime object
This article is more informational than how to. I have run into a couple people who where having a hard time with the DateTime object. So I put together a kind of quick reference, here's how you do it, article on the DateTime object. The topics I cover are: 1. Constructing the DateTime object 2. Getting data from the DateTime object 3. Formatting the DateTime Object The article itself is going to be fairly short. It is easier to see the code in action rather than explain it.

| Hits: | 74 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
C# DateTime Structure
Here is an example of how the DateTime Structure works for C#. It's extremely basic and very easy to follow.

| Hits: | 64 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
Use of DATE Jargon in C#
Use of Date Jargaon in C#.The following program will use some functions of DateTime class. This is a console based program which shows current months calendar and also provide option for viewing next month,year,previous month,years calendar too.

| Hits: | 66 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
Using Date & DatePart, and Others
There are different intervals you can use when you use DatePart (listed at bottom of page), along with several constants (which I won't get into on this page). DatePart returns part of a specified date in this form: DatePart(interval, date[, firstdayofweek[, firstweekofyear]]) List of Arguments interval Required. String expression that is the interval of time you want to return. See Settings section for values. date Required. Date expression you want to evaluate. firstdayof week Option

| Hits: | 100 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |
WebForm DatePicker in C#
This is a C# project for VS.Net. In it's simplicity, a DatePicker for a WebForm is a pop-up Javascript window that uses the calendar control. When the DatePicker window has focus, if you click on the date it will be transferred to your main input form. We have also added the ability to select a Year and Month from a DropDownList to make finding a future or past date more convenient. Other than the comments in C# file, there is no documentation. A small image appears to the right of a textbox

| Hits: | 88 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-13 |