Click here to Skip to main content
6,630,586 members and growing! (17,573 online)
Email Password   helpLost your password?
Article Category: All Topics MFC/C++ C# VB.NET ASP.NET SQL Architect Windows 7 Java LAMP Mobile CEO / Manager
Announcements
BullFrog Power
 
Search    
Add to IE Search

Date and Time


General Programming » Date and Time
Language
Platform
Technology
Audience
Skill Level
Topic
Clear All

Contents

 

Date & Time - Algorithms

top
Title / Updated Author Score  
Programming for Date Ranges - Unedited
Updated: 25 Sep 2009  
 If you are anything like me, you have seen plenty of SQL statements like this: SELECT * FROM MyTable WHERE CreateDate BETWEEN @StartDate AND @EndDate Pretty simple and self explanatory, right?  To a programmer, yes it is.  However, when you start building a UI for the user to enter those start da
XML, Windows
Charles Boyung 5.00
MS Outlook-style Date Recurrence Patterns
Updated: 22 Apr 2002  
Date recurrence patterns engine with a UI similar to MS Outlook
VC7Win2K, Visual Studio, MFC, Dev
Matt Gullett 4.76
Leap Years
Updated: 20 Feb 2000  
A discussion on the thorny issue of leap years.
C++, Windows, Visual Studio, Dev
Chris Maunder, LeRoy Baxter 4.39
Rounding a DateTime object to a defined number of minutes
Updated: 23 Mar 2008  
A simple two line function to round a DateTime up, down, or to a nearest defined number of minutes.
C# (C# 1.0, C# 2.0, C# 3.0), Dev
Jason Sobell 4.27
Remaining Timer
Updated: 2 Jul 2008  
Estimate the duration of an operation using linear regression.
C# (C# 1.0, C# 2.0, C# 3.0)
Gilad Kapelushnik 4.20
Calculating Duration Between Two Dates in Years, Months and Days
Updated: 25 Aug 2008  
Calculate the accurate duration between two dates in years, months and days
C# 2.0WinXP, ASP.NET, Dev
Mohammed Ali Babu 4.15
Calculating Easter Sunday
Updated: 23 Nov 2001  
How to find Easter Sunday and Ash Wednesday
VC6Win2K, MFC, Dev
Oskar Wieland 2.57
Calculating Business Hours
Updated: 11 Jul 2007  
An article on how to calculate business hours between two dates
C++, Windows, Visual Studio, MFC, Dev
perle1 1.64
Creating classes at runtime - Unedited
Updated: 15 Jun 2009  
I've been working on an application that has a number of forms that need to be laid out based on configuration data in the database, this enables the application to meet the requirements of many different customers. Laying out the forms based on the configuration data is relatively trivial - it
XML, Windows
S1mm0t  

Date & Time - General

top
Title / Updated Author Score  
ACCU 2009: So many sessions, so little time... - Unedited
Updated: 28 Sep 2009  
Preamble [21st April 2009]Well, we're here at the Barcelo Oxford Hotel again, and for us ACCU 2009 starts tomorrow (though the pre-conference workshops happen on the Tuesday, we haven't booked onto one this year).We are a little more prepared this year than last - for example we now have a 6 foot ro
XML, Windows
Anna-Jayne Metcalfe 5.00
C++ Calendar Alarm Class with Repeat Capability
Updated: 23 Mar 2006  
CAlarmClock is a C++ class that can generate repeating asynchronous alarms.
VC7.1.NET 1.1, WinXPVS.NET2003, Dev
DaveeCom 4.83
Is this computer's clock slow or is it just me?
Updated: 16 Oct 2009  
How to request and parse data from various time servers using the NTP, DAYTIME, and TIME protocols.
C++ (VC8.0), Windows (WinXP, Vista), Win32, MFC, Dev
DavidCrow 4.70
A Simple Class To Handle Dates
Updated: 12 Dec 1999  
A class that simplifies common date handling tasks
VC6, Dev
Richard Stringer 4.60
Two data types to represent a period of time with NHibernate user types
Updated: 21 Jan 2008  
This article introduces two data types that can be used to represent a period of time with specific start and end points.
C#, .NET, Visual Studio, Architect, Dev
Kailuo Wang 4.60
Excel serial date to Day, Month, Year and vise versa
Updated: 12 Aug 2002  
A speedy algorithm to convert Excel numbers to DMY and vise versa.
VC6, VC7Win2K, WinXP, Visual Studio, Dev
Victor Vogelpoel 4.59
Beating the Daylight Savings Time bug and getting correct file modification times
Updated: 28 May 2001  
Windows reports erroneous file modification times, which change according to daylight savings. This article describes why this is so and how to determine correct file modification times and avoid the DST bug.
VC6, Windows, Dev
Jonathan Gilligan 4.58
gTimePicker- Control to Pick a Time Value (VB.NET)
Updated: 30 Sep 2009  
Stop using the DateTimePicker for time values, this control makes it easy to pick a time, and if you act now, get the matching Nullable gDateTimePicker at no extra cost.
VB 8.0.NET 2.0, Dev
SSDiver2112 4.58
WinAPI - simple operations with datetime
Updated: 30 Nov 2003  
Simple operations with datetime - add/diff to/from datetime, difference between datetime on WinAPI
VC6, VC7, VC7.1Win2K, WinXP, Win2003, Visual Studio, Dev
AlexeyU 4.53
High resolution date and time class
Updated: 24 Jan 2000  
A high resolution time class that is a replacement for COleDateTime that does not use MFC.
VC6, Visual Studio, Dev
HÃ¥kan Still 4.51
Tray Calendar
Updated: 2 Aug 2003  
A simple application that places a date in the system tray
VC6, VC7, VC7.1Win2K, MFC, VS.NET2003, Dev
Chris Maunder 4.47
Date and Time in C++
Updated: 15 Oct 2002  
This is an article on the various usages of date and time in Windows C++
VC6, VC7, Windows, Visual Studio, Dev
RK_2000 4.45
How to get timings as fine-grained as one nanosecond or better
Updated: 2 Dec 2003  
How to get timings as fine-grained as one nanosecond or better
VC6, VC7, VC7.1Win2K, WinXP, Win2003, Visual Studio, Dev
Mark VanTassel 4.41
TaskTimer - an object to monitor task execution
Updated: 8 Aug 2002  
An object that tracks a task's elapsed and remaining times, and execution state.
VC6Win2K, WinXP, MFC, Dev
Ravi Bhavnani 4.36
WinForms User Control for date selection
Updated: 17 Feb 2009  
A WinForms User Control which provides colour-coded feedback on dates which are already assigned.
C#.NET 2.0, .NET 3.0, .NET 3.5, Win32, Win64, WinForms, VS2005, VS2008, Dev
KazMaxLtd 4.29
The CPerfTimer timer class
Updated: 27 Apr 2000  
This class encapsulates QueryPerformanceCounter for high precision timing
VC6, Visual Studio, Dev
Dean Wyant 4.27
Time zone class and data
Updated: 16 Jan 2007  
An article on a time zone class and time zone data.
VC7, VC7.1.NET 1.1, Win2K, WinXP, Win2003, MFC, VS.NET2003, Dev
Joe Woodbury 4.24
How to synchronise your Windows 2000 machine using SNTP
Updated: 6 Jan 2004  
Using the Windows 2000 Time Service to set the system clock
C++Win2K, Visual Studio, Dev
Rob Manderson 4.22
DateValidator using SNTP
Updated: 8 Jul 2009  
Check if the expiration date of your application has been passed regardless of system date.
C# 2.0, C# 3.0, C# 4.0.NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, Dev
DaveyM69 4.22
Convert date from Hijri Calendar to Gregorian Calendar and vise versa
Updated: 20 Nov 2004  
In this class, I introduce a solution for converting dates between two calendars :Hijri & Gregorian.
C#, Windows, .NET 1.1, ASP.NET, Visual Studio, Dev
Anas Bahsas 4.20
CCPUTicker v1.22 - Precision Timing
Updated: 3 Mar 2000  
An ultra high precision MFC timing class for Pentium or greater CPUs.
VC6, MFC, Dev
PJ Naughter 4.18
Comparing COleDateTime objects
Updated: 14 Nov 2001  
Solution to the bad working COleDateTime comparing methods
VC6Win2K, WinXP, Visual Studio, MFC, Dev
Geert Delmeiren 4.11
PersianDate and some WPF controls for it
Updated: 12 Nov 2009  
The code represents a type for holding Persian date values, and two WPF controls for working with Persian dates.
C# 3.0, Windows, .NET 3.0, XAML, WPF, Dev
Arash Sahebolamri 4.11
Analog Clock Control
Updated: 6 Aug 2009  
The analog clock control is a control that has almost all the functionality that a clock control can have, and it is fully modifiable.
VB 8.0, Windows, .NET 2.0, GDI+, VS2005, Dev
VBDT 4.07
Sunrise/Sunset Calculations
Updated: 14 Dec 2000  
Code to help calculate sunrise and sunset times
VC6Win2K, MFC, Dev
Brian Heilman 4.05
Any Day of the Week Using the Doomsday Rule
Updated: 27 Jun 2002  
C++ implementation of the Doomsday Rule to determine the weekday.
VC6, VC7Win2K, WinXP, MFC, Dev
Paul J. Weiss 4.00
C# Date Time Parser
Updated: 11 Feb 2009  
Parsing date and (or) time from a string.
C#, .NET, Dev
Sergey Stoyan 4.00
Calculate Difference Between Two Dates in Day, Week, Month and Year Parts
Updated: 19 Nov 2009  
Calculate difference between two dates in day, week, month and year parts
C#, .NET
Mahmoud Fathy Afify 4.00
Time64 - 64 bit Times for 32 bit Windows Apps
Updated: 5 Aug 2003  
64-bit version of C time routines for Windows
VC6, VC7, VC7.1Win2K, WinXP, Win2003, MFC, Dev
R. Walker 3.94
Convert between UTC (Universal Co-ordinated Time) and local time
Updated: 8 Dec 2008  
How to convert between UTC (Universal Co-ordinated Time) and local time.
C#, Windows, .NET, Visual Studio, Dev
Gary Dryden 3.92
CMultimediaTimer - a periodic timer class
Updated: 27 Mar 2002  
CMultimediaTimer implements a periodic timer using the Windows Multimedia Timer API
VC6Win2K, WinXP, Dev
John P. Curtis 3.90
How to use time-zones in .NET under Windows
Updated: 6 Jun 2008  
This article describes how to convert between arbitrary time-zones in .NET 2.0.
C#, Windows (WinXP), .NET (.NET 2.0), Win32, Visual Studio (VS2005), Dev
kian01 3.89
Calculating Christian Holidays
Updated: 19 Jul 2005  
Calculate dates for christian holidays such as Easter, Ascension day etc.
C#, Windows, .NET 1.0, .NET 1.1, .NET 2.0VS.NET2003, VS2005, Dev
Jan Schreuder 3.88
A Few Classes to Work With Date, Time, Datetime and Timezone Data
Updated: 9 Oct 2002  
Classes to make working with time and date data in different timezones easier.
VC6Win2K, WinXP, Dev
Alex Mol 3.87
Alternative Timestamp Class with no MFC
Updated: 10 Aug 2007  
This article describes a timestamp class that can be used as an alternative to the standard C date time functions.
VC6, VC7, VC7.1, VC8.0, Windows, Win Mobile, Mobile, Dev
metcarob 3.80
SystemTime to VariantTime with Milliseconds
Updated: 9 Feb 2007  
Enhanced system time / variant time conversion with milliseconds
VC7WinXPVS.NET2003, Dev
skarapanahalli 3.77
CWeek - A class for getting the weekday and weeknumber
Updated: 22 Mar 2004  
Getting the weekday and weeknumber.
VC6, VC7, VC7.1Win2K, WinXP, Win2003, Visual Studio, Dev
Patrik Svensson 3.68
MonthCalendar Calendar - Control
Updated: 17 Mar 2008  
A Calendar control with 4 views
C#, Dev
LetsCodeInCSharp 3.60
CEstimateTimeStatic - a class for estimating remaining time
Updated: 6 Feb 2003  
A simple but effective class for estimating remaining time in the execution of a process
VC6Win2K, WinXP, MFC, Dev
Doru Cioata 3.48
Y2K Bugs, And Why You Should Still Worry About Them
Updated: 14 Feb 2001  
An editorial about year 2000 issues and why they are still relevant today.
VC6Win2K, Visual Studio, Dev
Michael Dunn 3.47
Format Date and Time As Per User's Locale Settings
Updated: 19 Aug 2008  
Convert date and time to a string using format settings specified in Control Panel -> Regional Options.
C++, Windows, Visual Studio, MFC, Dev
Damir Valiulin 3.45
MyDate - A System Independent Date Object
Updated: 10 Sep 2009  
MyDate is a comprehensive class that wraps the date data type and provides many useful functions and operators for dealing with dates.
C++ (VC6, VC7, VC7.1), Windows, Dev
Vijay Mathew Pandyalakal 3.43
Jalali (Shamsi) Calendar Class, Simple and Useful
Updated: 24 Sep 2007  
This article describes the CJalaliCalendar class, which is useful for working with the Iranian Jalali (Shamsi) calendar.
VC6, VC7, VC7.1, VC8.0Win2K, WinXP, Win2003, Vista, MFC, VS.NET2003, VS2005, Architect, Dev, Design
Ali Tavakol 3.34
Custom ShortDate type (struct: IComparable)
Updated: 19 Feb 2005  
A struct example.
C#, Windows, .NET 1.1, ASP.NET, Visual Studio, Dev
Stefan Prodan 3.24
Timezones in PHP
Updated: 5 Aug 2008  
List of all timezones in PHP.
PHP, Dev
Mohammad Dayyan 3.00
Calling Method Asynchronously With A Timeout - Unedited
Updated: 17 Jun 2009  
As part of an ongoing project I am just about to finish, I had a need to use a 3rd party web service. Now I am quite an cautious sort of chap when it comes to using web services. So I generally try and ensure that I try and make my code as robust as [...]
XML, Windows
Sacha Barber 3.00
Adding Business Days to a Date
Updated: 29 Oct 2009  
How to add a certain number of business days to a start date
C#, VB, Windows, .NET (.NET 3.0), ASP.NET, Dev
jd_fubar 3.00
A New Concept in Date Range Picking: the DateRangeComboBox
Updated: 2 Nov 2008  
It could take 11 clicks or 20 keystrokes to choose two dates representing last year. Why not choose "Last Year" in a ComboBox?
C# (C# 2.0), .NET (.NET 2.0), WinForms, Dev
Erichero 2.90
How to check if a datetime exists
Updated: 7 Aug 2003  
An article about checking a datetime.
VC6, VC7, VC7.1Win2K, WinXP, Win2003, Visual Studio, Dev
Nikolai Serdiuk 2.83
A TimeZone Aware DateTime Implementation
Updated: 16 Apr 2009  
An implementation that wraps DateTime to allow for keeping track of TimeZone state.
C# 2.0, C# 3.0.NET 2.0, .NET 3.0, .NET 3.5, DBA, Dev
steinard 2.83
Fun with Enums and a Generic File Date/Time Stamper - Unedited
Updated: 4 Aug 2009  
A generic file date/time stamper.
C#, XML, Windows, .NET, Dev
bobleith 2.78
High Resolution Elapsed Timer
Updated: 12 Dec 2001  
A simple high resolution timer class to help time code blocks.
VC6, Visual Studio, MFC, Dev
Chen Venkataraman 2.60
Auto Adjusting Date Ranges on Entry of a New Range using SQL
Updated: 27 Sep 2009  
Given date ranged data, adjust existing ranges on entry of a new ranged data.
SQL, Windows, SQL Server (SQL 2000, SQL 2005, SQL CE, SQL 2008), DBA, Dev, Design
acarpio1975 2.33
Timer Class - Time how long your programs run for - Unedited
Updated: 20 Dec 2007  
Time how long an application or a set of processes run for to milisecond precision.
C++, Windows, MFC, STL, VS.NET2003, VS2005, VS2008, Dev
Robert Roose 1.78
Get hold of system time without using inbuilt functions (Can be used with Turbo C++) - Unedited
Updated: 11 Jul 2006  
Getting system timer without using inbuilt system calls
C, VC6, VC7Win2K, WinXP, MFC, Dev
Sreekanth Muralidharan 1.18
DateTimeFormat DD/MM/YYYY in Ajax tool kit 4.0 - Unedited
Updated: 24 Mar 2009  
The big problem using date time format in dd/mm/yyyy using ajax tool kit 4.0
C#, .NET, ASP.NET, Architect
Jason Troitsky, zuhair haroon khan software programmer 1.00
Don't you wish today was a holiday?
Updated: 3 May 2009  
An easy to use, versatile, and convenient calendar you can program.
VB, Windows, .NET, Dev
Christ Kennedy  

Date & Time - Tools

top
Title / Updated Author Score  
Desktop Alarm Clock
Updated: 23 Feb 2009  
The Desktop Alarm Clock is a very useful application that can perform several tasks.
VB 9.0WinXP, Win2003, Vista, Win32, GDI+, COM, VS2008, Dev, Design
VBDT 4.65
Simple(x) Date & Time Math Parser
Updated: 22 Apr 2004  
Date and time class from the SimplexParser freeware.
VC6WinXP, Dev
Ralf Wirtz 4.48
An SNTP Client for C# and VB.NET
Updated: 22 Jul 2009  
A complete overview and implementation of SNTP from a client perspective.
C# (C# 3.0, C# 4.0), VB (VB 8.0, VB 9.0, VB 10), Windows, .NET (.NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0), Visual Studio (VS2008), WinForms, Dev, SysAdmin
DaveyM69 4.44
Date-Time Conversion Utility
Updated: 21 Sep 2001  
A simple app that converts to and between time_t, DATE, and regular date string expressions
VC6, Windows, Dev
Alvaro Mendez 4.40
Scheduling Future Dates
Updated: 1 Oct 2008  
Implement repetitive tasks at consistent intervals
C# 2.0, C# 3.0.NET 2.0, .NET 3.0, .NET 3.5, Dev
John Simmons / outlaw programmer 4.22
Seagate Date Code Calculator
Updated: 6 Aug 2007  
How to get the date 20 November 2005 from the number 06212.
C# (C# 2.0).NET 2.0, Win2K, WinXP, Win2003, VistaVS2005, Dev
Paw Jershauge 4.18
Anthem.PersianCalendar - .NET Persian Calendar WebControl
Updated: 12 Nov 2009  
An Ajax PersianCalendar Control that looks like Original Calendar of .NET Framework
C#.NET 2.0, .NET 3.0, ASP.NET, Ajax
Morteza Alikhani 4.00
Time Client (RFC868)
Updated: 6 Apr 2002  
Learn how to synchronize your date and time
VC6, VC7Win2K, WinXP, MFC, Dev
Orkun GEDiK 3.76
How To Calculate the Age of a File
Updated: 9 Mar 2008  
Using time and file functions
C++/CLI, C, VC6WinXP, Win32
Ben Aldhouse 3.22

Last Updated 21 Nov 2009
Advertise | Privacy
Copyright © CodeProject, 1999-2009
All Rights Reserved. Terms of Use