Tutorials
GfG Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
19.9K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Java
9.3K+ articles
Misc
7.8K+ articles
Mathematical
5.1K+ articles
C++
3.7K+ articles
Python Programs
3.7K+ articles
Basic Coding Problems
371+ articles
date-time-program
62 posts
Recent Articles
Popular Articles
Python program to calculate age in year
Last Updated: 11 July 2025
Given birth date in y/m/d format, write a Python program to find the present age in years.Examples:Input : 1997/2/3Output : 21 years (for present year i.e 2018)Input : 201...
read more
Python
Python Programs
date-time-program
Program for converting hours into minutes and seconds
Last Updated: 13 March 2023
Given an integer n which is the number of hours, the task is to convert it into minutes and seconds.Examples:Input: 5Output: Minutes = 300, Seconds = 18000Input: 2Output: ...
read more
Technical Scripter 2018
DSA
date-time-program
Python program to find day of the week for a given date
Last Updated: 10 July 2025
To find the day of the week for a given date, we convert the date into a form that Python can understand and then determine which weekday it falls on. For example, the dat...
read more
Python
Python Programs
date-time-program
Python program to convert seconds into hours, minutes and seconds
Last Updated: 26 June 2025
Given an integer n (in seconds), convert it into hours, minutes and seconds.Examples:Input : 12345Output : 3:25:45Input : 3600Output : 1:00:00Let's look at different ways ...
read more
Python
Python Programs
date-time-program
Sort a multidimensional array by date element in PHP
Last Updated: 11 July 2025
Sorting a multidimensional array by element containing date. Use the usort() function to sort the array. The usort() function is PHP builtin function that sorts a given ar...
read more
Web Technologies
Picked
PHP
PHP Programs
PHP-date-time
date-time-program
Count how many times the given digital clock shows identical digits
Last Updated: 02 August 2021
Given a generic digital clock, having h number of hours and m number of minutes, the task is to find how many times the clock shows identical time. A specific time is said...
read more
DSA
Infosys
date-time-program
How to get Day, Month and Year from Date in Java
Last Updated: 01 February 2023
Given a date in the form of a string, the task is to write a Java Program to get the day, month, and year from the given date.Examples:Input: date = "2020-07-18"Output:Day...
read more
Strings
Java Programs
DSA
date-time-program
Java-LocalDateTime
Java-Date-Time
Java-LocalDate
Java-DateFormat
strings
Convert Unix timestamp to DD/MM/YYYY HH:MM:SS format
Last Updated: 06 October 2022
Given a Unix Timestamp T (in seconds) for a given point in time, the task is to convert it to human-readable format (DD/MM/YYYY HH:MM:SS)Example:Input: T = 1595497956Outpu...
read more
DSA
date-time-program
Maths
Find the date after next half year from a given date
Last Updated: 07 June 2021
Given a positive integer D and a string M representing the day and the month of a leap year, the task is to find the date after the next half year.Examples:Input: D = 15, ...
read more
Misc
Greedy
Mathematical
DSA
date-time-program
Queries to find the future closest date
Last Updated: 14 December 2022
Given an array arr[] consisting of N strings and an array Query[] consisting of Q queries. Each string in arrays arr[] and Query[] is of the form D/M/Y where D, M and Y de...
read more
Misc
Strings
Searching
Sorting
Mathematical
DSA
Arrays
Binary Search
date-time-program
Count intervals that intersects with a given meeting time
Last Updated: 03 January 2023
Given an array arr[][2] consisting of N pair of strings representing the starting and ending time (in 12 hours format) and a string P which represents the time of the meet...
read more
Strings
Mathematical
Technical Scripter
Technical Scripter 2020
DSA
date-time-program
Maximize time by replacing '_' in a given 24 Hour format time
Last Updated: 09 June 2022
Given a string S representing a time in 24 hours format, with '_' placed at positions of some digits, the task is to find the maximum time possible by replacing the charac...
read more
Strings
Mathematical
Technical Scripter
Technical Scripter 2020
DSA
date-time-program
std::get_time() Function in C++
Last Updated: 21 March 2024
In C++, the function std::get_time() is a standard library function that is used to parse the given input as date and time value as specified in the format string that is ...
read more
C++ Programs
C++
Picked
date-time-program
CPP Examples
How to Convert String to Date in C++?
Last Updated: 22 March 2024
In C++, we generally store the date and time data in the form of the object of type std::tm. Sometimes, this data is stored inside a string object and we need to convert i...
read more
C++ Programs
C++
cpp-string
date-time-program
cpp-strings
Convert the Local Time to GMT in C
Last Updated: 15 June 2025
Time zone handling is a mandatory feature for applications that work across multiple geographical regions. This includes the conversion of time from one time zone to anoth...
read more
C Language
date-time-program
C Programs
1
2
3
4
5
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !