|
|
|
.NET Namespaces (1927) .NET Framework Namespaces | Applications (1097) Management, Email, Graphics, Search.. | Articles & Samples (69336) Assembly, Caching, Controls, Reflection.. | Community (95) Conferences, Chat Rooms, Jobs, Training.. | Component & Controls (1426) Forums, Management, Email, more.. | Developers Sites (155) Sites dedicated to developer community.. | Developers Training (495) Training CD-ROMs, Videos, Courseware.. | Downloads (429) Service Packs, Code, Msdn Show.. | Hosting Services (136) ASP and ASP.Net Hosting sites.. | Introduction (571) ASP, ADO.Net, C#, VB.NET, XML | Knowledge Base (2410) Knowledge Base Articles, Samples, Tutorials, HowTos... | Sample Chapters (240) Sample Chapters from Developer Books.. | Silverlight (1368) Silverlight | Support WebCasts (1533) Microsoft's Support WebCasts |
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: LetsCodeInCSharp
|
Rating:
|
|

MonthCalendar is a calendar control with many nice features. It contains:
* an image for each month (it can be displayed at the top or under monthdays) * a Navigationbar to change current month and year * Short weekdays * Weeknumbers...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Matt Esterak
|
Rating:
|
|

Sometimes you need to be able to determine when Daylight Savings Time (DST) will occur in a given year. DST varies around the world for timezones where DST is observed. The code herein can automatically determine the date/time a minute before a DST change occurs in the user's timezone. The JavaScript Date object is used as part of calculating the date/time just before DST adjustments occur. I needed a solution with this behavior to properly adjust UTC date/time for previous and future dates inte...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: metcarob
|
Rating:
|
|

This is a timestamp class that stores dates and times from year 0 to year 9999 and beyond. It stores timestamps up to an accuracy of hundredths of a second. It can be constructed using a range of different formats, it can output individual components as well as strings in various formats, and it includes comparison operators as well as some basic date arithmetic (add day, add month, etc.). This class is aware of leap years, but not leap seconds....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: SpaceSoft
|
Rating:
|
|

This article will guide you through a simple algorithm to find a certain day in the next week.
For example, you want to find next Sunday: Today's date: 27/11/2009 The program will return: 29/11/2009 (Or corresponding UNIX Time)...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: skarapanahalli
|
Rating:
|
|

When you use the Microsoft Automation functions VariantTimeToSystemTime to convert variant time to system time and the SystemTimeToVariantTime to convert system time to variant time, the milliseconds value appears as zero or is ignored. This is known issue documented in MSDN knowledge base, under ID Q297463. However many times ignoring milliseconds is not a option. Two simple functions wrapping the original API functions can be used to convert SystemTime to VariantTime and vice versa without lo...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Alex Mol
|
Rating:
|
|

A few days ago this became necessary because of hard-working with date, time and timezone information. The main task is to convert date from one local time to another. Trying to find something useful on the net failed, except for finding a small part of an SFL library. After some cutting and pasting their code, I created a few small classes where everything I need can be found. So, that's the history....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: kian01
|
Rating:
|
|

Time-zone handling in .NET 2.0 is restricted to converting between UTC and local (usually server) time. However, in order to display DateTime correctly to users in different regions, in particular, in web applications, you need to be able to convert DateTime between UTC (which is what you should always store in your DB) and the target time zone....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Jan Schreuder
|
Rating:
|
|

I was looking for a way to calculate the date for Easter Sunday when I found Oskar Wieland's article, Calculating Easter Sunday, here at Code Project. It describes a method in C++ and I needed the code in C#. I then realized that Easter is not the only Christian holiday that can be calculated. Some are directly related to Easter, others are related to Christmas. I therefore created a simple C# class that will return dates for the following Christian Holidays:
* Easter Sunday * ...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: John P. Curtis
|
Rating:
|
|

CMultimediaTimer implements a simple periodic timer using the Windows Multimedia Timer API.
NB.A Multimedia timer is actually a seperate high priority thread so all the normal multithreading issues apply. As with worker threads, MFC objects should not be called directly from a timer callback due to the Handle Map hoodoo stored in the CWinThread local storage....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Gary Dryden
|
Rating:
|
|

(If you can use .NET 3.5, then this code has been superceded, by a built-in class. Thanks to neilio for pointing this out.)
Elsewhere on this site is a long winded explanation about how Windows actually knows about more than UTC and your local timezone (and a class TimeZoneInformation that implements conversion to/from any timezone to UTC). My problem was that my server is in the central timezone, but the users can be anywhere in the world, and I wanted them to see the time of their trans...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: R. Walker
|
Rating:
|
|

The C time routines such as time(), localtime() etc. represent time as seconds from 1st January 1970. The variable type time_t is defined as a 32 bit signed integer - to permit negative times for the seconds difference between two times.
This means that if you use them in a 32-bit build, then normally the maximum time that can be represented is Tue Jan 19 03:14:07 2038. This is the C language equivalent of the Y2K bug - but is far more easily solved. You just need to do a 64 bit build to ...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: vossccp
|
Rating:
|
|

Before you start wondering what Noda might stand for: Noda stands for nothing, except that it tries to express its conceptional closeness to the popular Java Framework called Joda....
|
|
|
|
|
|