The month of October in 2010 has five Fridays, five Saturdays, and five Sundays. The task Write a program to show all months that have this sa
Continue ReadingC++: Date Manipulation
Given the date string "March 7 2009 7:30pm EST", output the time 12 hours later in any human-readable format. #include <string> #include &
Continue ReadingC++: Date Format
Display the current date in the formats of "2007-11-10" and "Sunday, November 10, 2007". // Display the current date in the formats of "2007-11-1
Continue ReadingC++: Discordian Date
Convert a given date from the Gregorian calendar to the Discordian calendar. #include <iostream> #include <algorithm> #include <
Continue ReadingC++: Find the Last Sunday of Each Month
Write a program or a script that returns the last Sundays of each month of a given year. The year may be given through any simple input method in your
Continue Reading