Click here to Skip to main content

General Programming » Date and Time

Date and Time

Date & Time - Algorithms 

top
Title / Updated Author Score  
MS Outlook-style Date Recurrence Patterns
Updated: 22 Apr 2002
Date recurrence patterns engine with a UI similar to MS Outlook
VC7, Win2K, Visual-Studio, MFC, Dev
 
Matt Gullett 4.93
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.0, WinXP, ASP.NET, Dev
 
Mohammed Ali Babu 4.63
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.42
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.35
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.25
Calculating Easter Sunday
Updated: 23 Nov 2001
How to find Easter Sunday and Ash Wednesday
VC6, Win2K, 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.77

Date & Time - General 

top
Title / Updated Author Score  
Time Period Library for .NET
Updated: 16 May 2012
Extensive time period calculations and individual calendar periods.
C# (C#4.0), Windows, .NET, Mobile (Windows-Phone-7), ASP.NET, Silverlight, Dev, WinForm
 
Jani Giannoudis 4.98
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.96
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, VC7, Win2K, WinXP, Visual-Studio, Dev
 
Victor Vogelpoel 4.96
Calculate Difference Between Two Dates in Day, Week, Month, and Year Parts
Updated: 22 Nov 2009
Calculate difference between two dates in day, week, month, and year parts.
C#, .NET, Dev
 
Mahmoud Fathy Afify 4.94
C++ Calendar Alarm Class with Repeat Capability
Updated: 23 Mar 2006
CAlarmClock is a C++ class that can generate repeating asynchronous alarms.
VC7.1, .NET1.1, WinXP, VS.NET2003, Dev
 
DaveeCom 4.89
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.89
gTimePicker- Control to Pick a Time Value (VB.NET)
Updated: 8 Feb 2012
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.
VB8.0, .NET2.0, Dev
 
SSDiver2112 4.89
The CPerfTimer timer class
Updated: 27 Apr 2000
This class encapsulates QueryPerformanceCounter for high precision timing
VC6, Visual-Studio, Dev
 
Dean Wyant 4.88
Tray Calendar
Updated: 2 Aug 2003
A simple application that places a date in the system tray
VC6, VC7, VC7.1, Win2K, MFC, VS.NET2003, Dev
 
Chris Maunder 4.88
PersianDate and Some WPF Controls For It
Updated: 25 Apr 2012
PersianDate type, and two WPF controls (PersianCalendar, and PersianDatePicker) for working with Persian dates
C#, Windows, .NET, XAML, WPF, Dev, DateTime, User-controls, .NET4, Controls
 
Arash Sahebolamri 4.85
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.82
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.78
A Simple Class To Handle Dates
Updated: 12 Dec 1999
A class that simplifies common date handling tasks
VC6, Dev
 
Richard Stringer 4.77
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.1, Win2K, WinXP, Win2003, Visual-Studio, Dev
 
AlexeyU 4.77
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.74
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, .NET1.1, ASP.NET, Visual-Studio, Dev
 
Anas Bahsas 4.71
C# Date Time Parser
Updated: 18 Apr 2012
Parsing date and (or) time from a string
C#, .NET, Dev
 
Sergey Stoyan 4.70
Time Shift Utility
Updated: 19 Apr 2011
The The Time Shift utility helps to alter the application time without affecting the System time.
C#, .NET, Dev
 
Swati Kathuria 4.67
TimeEdit Controls
Updated: 25 Sep 2011
TimeEdit, TimeCombo, TimeColumn for flexible time editing
VB, Windows, Visual-Studio (VS2010), User-controls, WinForm
 
NewPast.Net 4.64
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
Time zone class and data
Updated: 16 Jan 2007
An article on a time zone class and time zone data.
VC7, VC7.1, .NET1.1, Win2K, WinXP, Win2003, MFC, VS.NET2003, Dev
 
Joe Woodbury 4.55
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.1, Win2K, WinXP, Win2003, Visual-Studio, Dev
 
Mark VanTassel 4.53
Analog Clock Control
Updated: 23 Jan 2010
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 (VB8.0), Windows, .NET (.NET2.0), GDI+, VS2005, Dev
 
VBDT 4.52
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.
VC6, Win2K, WinXP, MFC, Dev
 
Ravi Bhavnani 4.36
Maya Calender Calculator
Updated: 23 Jun 2011
Calculator to convert dates in Maya calendar (long counter) to Gregorian date and vice versa
C#, Windows, Visual-Studio (VS2005), Dev
 
eugeniothompson 4.33
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#, .NET2.0, .NET3.0, .NET3.5, Win32, Win64, VS2005, VS2008, Dev, WinForm
 
KazMaxLtd 4.29
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, .NET2.0, .NET3.0, .NET3.5, Dev, .NET4
 
DaveyM69 4.22
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
VC6, Win2K, WinXP, Visual-Studio, MFC, Dev
 
Geert Delmeiren 4.11
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.
VC6, Win2K, WinXP, Dev
 
Alex Mol 4.07
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
VC6, Win2K, WinXP, MFC, Dev
 
Doru Cioata 4.00
Sunrise/Sunset Calculations
Updated: 14 Dec 2000
Code to help calculate sunrise and sunset times
VC6, Win2K, MFC, Dev
 
Brian Heilman 4.00
SystemTime to VariantTime with Milliseconds
Updated: 9 Feb 2007
Enhanced system time / variant time conversion with milliseconds
VC7, WinXP, VS.NET2003, Dev
 
skarapanahalli 4.00
Any Day of the Week Using the Doomsday Rule
Updated: 27 Jun 2002
C++ implementation of the Doomsday Rule to determine the weekday.
VC6, VC7, Win2K, WinXP, MFC, Dev
 
Paul J. Weiss 4.00
Noda –DateTime Extensions for .NET
Updated: 30 Apr 2010
Noda –DateTime extensions for .NET
C#, .NET (.NET1.0, .NET1.1, .NET2.0, Mono, .NET3.0, .NET3.5), .NET4
 
vossccp 4.00
What Every Developer Should Know About Time
Updated: 18 Feb 2011
A basic introduction to handling time
All-Topics, time
 
David Thielen 4.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 (.NET3.0), ASP.NET, Dev
 
jd_fubar 4.00
Calculating Christian Holidays
Updated: 18 Jul 2005
Calculate dates for christian holidays such as Easter, Ascension day etc.
C#, Windows, .NET1.0, .NET1.1, .NET2.0, VS.NET2003, VS2005, Dev
 
Jan Schreuder 3.98
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.1, Win2K, 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
VC6, Win2K, 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 (.NET2.0), Win32, Visual-Studio (VS2005), Dev
 
kian01 3.89
How To Find the Next User-defined Day Time
Updated: 29 Nov 2009
How to find the next user-defined day time
C++ (VC8.0), C
 
SpaceSoft 3.86
JavaScript code to determine when DayLight Savings Time (DST) occurs
Updated: 19 Feb 2010
JavaScript code to determine when DayLight Savings Time (DST) occurs.
Javascript, HTML, Dev
 
Matt Esterak 3.80
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, WinMobile, Mobile, Dev
 
metcarob 3.80
MonthCalendar Calendar - Control
Updated: 17 Mar 2008
A Calendar control with 4 views
C#, Dev
 
LetsCodeInCSharp 3.73
CWeek - A class for getting the weekday and weeknumber
Updated: 22 Mar 2004
Getting the weekday and weeknumber.
VC6, VC7, VC7.1, Win2K, WinXP, Win2003, Visual-Studio, Dev
 
Patrik Svensson 3.68
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.
VC6, Win2K, Visual-Studio, Dev
 
Michael Dunn 3.65
A TimeZone Aware DateTime Implementation
Updated: 24 Feb 2010
An implementation that wraps DateTime to allow for keeping track of TimeZone state
C# (C#2.0, C#3.0), .NET (.NET2.0, .NET3.0, .NET3.5), DBA, Dev
 
steinard 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.47
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
 
AnOldGreenHorn 3.47
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.0, Win2K, WinXP, Win2003, Vista, MFC, VS.NET2003, VS2005, Architect, Dev, Design
 
Ali Tavakol 3.39
Custom ShortDate type (struct: IComparable)
Updated: 19 Feb 2005
A struct example.
C#, Windows, .NET1.1, ASP.NET, Visual-Studio, Dev
 
Stefan Prodan 3.24
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 (.NET2.0), Dev, WinForm
 
Erichero 3.11
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 3.00
Timezones in PHP
Updated: 5 Aug 2008
List of all timezones in PHP.
PHP, Dev
 
Mohammad Dayyan 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 (SQL2000, SQL2005, SQL-CE, SQL2008), DBA, Dev, Design
 
acarpio1975 2.33
How to check if a datetime exists
Updated: 7 Aug 2003
An article about checking a datetime.
VC6, VC7, VC7.1, Win2K, WinXP, Win2003, Visual-Studio, Dev
 
Nikolai Serdiuk 2.08
Timer class - Time how long your programs run for
Updated: 20 Dec 2007
Time how long an application or a set of processes run for, to millisecond precision.
C++, Windows, MFC, STL, VS.NET2003, VS2005, VS2008, Dev
 
summatix 1.71
Get hold of system time without using inbuilt functions (Can be used with Turbo C++)
Updated: 10 Jul 2006
Getting system timer without using inbuilt system calls
C, VC6, VC7, Win2K, WinXP, MFC, Dev
 
Sreekanth Muralidharan 1.11
DateTimeFormat DD/MM/YYYY in Ajax tool kit 4.0
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
Time is of the essence
Updated: 6 Jul 2009
DateTime helper methods.
C#1.0, C#2.0, C#3.0, .NET, Dev
 
ovidiu_tudorache  

Date & Time - Tools 

top
Title / Updated Author Score  
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 (VB8.0, VB9.0, VB10), Windows, .NET (.NET2.0, .NET3.0, .NET3.5), Visual-Studio (VS2008), Dev, SysAdmin, .NET4, WinForm
 
DaveyM69 4.93
Scheduling Future Dates
Updated: 1 Oct 2008
Implement repetitive tasks at consistent intervals
C#2.0, C#3.0, .NET2.0, .NET3.0, .NET3.5, Dev
 
John Simmons / outlaw programmer 4.69
Desktop Alarm Clock
Updated: 23 Jan 2010
The Desktop Alarm Clock is a very useful application that can perform several tasks.
VB (VB9.0), Windows (WinXP, Win2003, Vista), Win32, Visual-Studio (VS2008), GDI+, COM, Dev, Design
 
VBDT 4.69
Anthem.PersianCalendar - .NET Persian Calendar WebControl
Updated: 12 Nov 2009
An Ajax PersianCalendar Control that looks like Original Calendar of .NET Framework
C#, .NET2.0, .NET3.0, ASP.NET, Ajax
 
Morteza Alikhani 4.56
Simple(x) Date & Time Math Parser
Updated: 22 Apr 2004
Date and time class from the SimplexParser freeware.
VC6, WinXP, Dev
 
Ralf Wirtz 4.48
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.44
Seagate Date Code Calculator
Updated: 6 Aug 2007
How to get the date 20 November 2005 from the number 06212.
C# (C#2.0), .NET2.0, Win2K, WinXP, Win2003, Vista, VS2005, Dev
 
Paw Jershauge 4.22
Time Client (RFC868)
Updated: 6 Apr 2002
Learn how to synchronize your date and time
VC6, VC7, Win2K, WinXP, MFC, Dev
 
Orkun GEDiK 3.81
How To Calculate the Age of a File
Updated: 9 Mar 2008
Using time and file functions
C++/CLI, C, VC6, WinXP, Win32
 
Ben Aldhouse 3.22

Advertise | Privacy | Mobile
Beta | 2.5.120517.1 | Last Updated 21 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid