We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest. Update Here
Stay in the loop with the latest from Microchip. Update your profile while you are at it. Update Here
Complete your profile to access more resources. Update Here

TB028

Title
Title
Technique to Calculate Day of Week
Name
Name
TB028
Date
Date
06/24/2015
Product Categories
Product Categories
8-bit MCU
Description
Description
Basically, there are two kinds of electronic systems that come with a built-in calendar. The first kind of system is used mainly to display a calendar for a user's conve-nience. Examples of these systems are digital watches, computers, VCRs and TVs with on-screen display features. The second kind of system is required to know whether a given date is a weekend or weekday. Examples of such a system are multi-rate meters (such as a phone bill meter) and electronic pricing sys-tems, where the weekend rate and the weekday rate are different. In order to build an electronic calendar into the system, the designer needs to write a piece of software that will be able to determine the day (Sunday, Monday, ?.Saturday) of the week when a date is input into the system. This routine is the basic component of an electronics calendar. This Technical Brief provides a technique to find the exact day for a given date input.

Live Chat

Need Help?

Privacy Policy