Skip to content

Tag Archives: date-time-program

We are given an array which consists of multiple dates in (Y-m-d) format. We have to write a program in PHP to sort all the… Read More
Below is the example of Date UTC() method. Example: <script>    var gfg = Date.UTC(2020, 07, 03);    document.write("Output : " + gfg); </script> Output: Output :… Read More
Given time in hours, find the time in minute at which the minute hand and hour hand coincide in next one hour.Examples :   Input :… Read More
java.util.Calendar.after() is a method in Calendar class of java.util package. The method returns true if the time represented by this Calendar is after the time… Read More
Given any date according to the Gregorian Calendar, the task is to return the day(Monday, Tuesday…etc) on that particular day. Examples:   Input : Date: 13 July… Read More
java.util.Calendar.before() is a method in Calendar class of java.util package. The method returns true if the time represented by this Calendar is before the time… Read More
The time.h header defines four variable types, two macro and various functions for manipulating date and time. A brief description of the variable types defined… Read More
There is some point in time when we need to add a number of days, months, years, hours, minutes and seconds to Date and time.… Read More
Given a one/two digit timing, calculate the possibilities of occurrence of other timings(including the glowing one) with relevant to glowing segments, assuming some segments may… Read More
First Method Printing current date and time using time() Second Method // CPP program to print current date and time // using time and ctime.… Read More
Given the starting day and the number of days in a month. Find the number of times every day occurs in a month Examples:   Input :… Read More
Given number of days, convert it in terms of Years, Week and Days. Examples :  Input : 30 Output : years = 0 week =… Read More
Given n time durations in the form of MM : SS, where MM denotes minutes and SS denotes the seconds. The task is to add… Read More
Given current date and birth date, find the present age. Examples:   Input : Birth date = 07/09/1996 Present date = 07/12/2017 Output : Present Age =… Read More
Given a year the task is that we will find the century in the given year. The first century starts from 1 to 100 and… Read More

Start Your Coding Journey Now!