Search - Articles - Dev Forums - Favorites - Member Login  
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Thursday, July 29, 2010

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

Build the right apps the right way with powerful development tools.
Visual Studio 2010. Learn more...
Search:
What's New - What's Hot
More Categories for .NET Namespaces .NET Namespaces (1927)
.NET Framework Namespaces
More Categories for Applications Applications (1097)
Management, Email, Graphics, Search..
More Categories for Articles & Samples Articles & Samples (69336)
Assembly, Caching, Controls, Reflection..
More Categories for Community Community (95)
Conferences, Chat Rooms, Jobs, Training..
More Categories for Component & Controls Component & Controls (1426)
Forums, Management, Email, more..
More Categories for Developers Sites Developers Sites (155)
Sites dedicated to developer community..
More Categories for Developers Training Developers Training (495)
Training CD-ROMs, Videos, Courseware..
More Categories for Downloads Downloads (429)
Service Packs, Code, Msdn Show..
More Categories for Hosting Services Hosting Services (136)
ASP and ASP.Net Hosting sites..
More Categories for Introduction Introduction (571)
ASP, ADO.Net, C#, VB.NET, XML
More Categories for Knowledge Base Knowledge Base (2410)
Knowledge Base Articles, Samples, Tutorials, HowTos...
More Categories for Sample Chapters Sample Chapters (240)
Sample Chapters from Developer Books..
More Categories for Silverlight Silverlight (1368)
Silverlight
More Categories for Support WebCasts Support WebCasts (1533)
Microsoft's Support WebCasts

MonthCalendar Calendar - Control    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: LetsCodeInCSharp       Rating:  
Read Reviews | Write Review |   Your 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...

JavaScript code to determine when DayLight Savings Time (DST) occurs    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: Matt Esterak       Rating:  
Read Reviews | Write Review |   Your 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...

Alternative Timestamp Class with no MFC    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: metcarob       Rating:  
Read Reviews | Write Review |   Your 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....

How To Find the Next User-defined Day Time    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: SpaceSoft       Rating:  
Read Reviews | Write Review |   Your 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)...

SystemTime to VariantTime with Milliseconds    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: skarapanahalli       Rating:  
Read Reviews | Write Review |   Your 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...

A Few Classes to Work With Date, Time, Datetime and Timezone Data    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: Alex Mol       Rating:  
Read Reviews | Write Review |   Your 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....

How to use time-zones in .NET under Windows    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: kian01       Rating:  
Read Reviews | Write Review |   Your 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....

Calculating Christian Holidays    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: Jan Schreuder       Rating:  
Read Reviews | Write Review |   Your 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
* ...

CMultimediaTimer - a periodic timer class    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: John P. Curtis       Rating:  
Read Reviews | Write Review |   Your 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....

Convert between UTC (Universal Co-ordinated Time) and local time    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: Gary Dryden       Rating:  
Read Reviews | Write Review |   Your 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...

Time64 - 64 bit Times for 32 bit Windows Apps    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: R. Walker       Rating:  
Read Reviews | Write Review |   Your 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 ...

Noda –DateTime Extensions for .NET    Version: 0.00       Price: $0.00   
Total Hits: 0  |  Today: 0 Author: vossccp       Rating:  
Read Reviews | Write Review |   Your 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....


DevASP.Net - Disclaimer - Privacy
© 2002-2010 DevASP.net