How-to articles, tricks, and solutions about DATE
Calculate age based on date of birth
Here is some sample PHP code that calculates a person's age based on their date of birth:
Calendar date to yyyy-MM-dd format in java
To format a Calendar date in the yyyy-MM-dd format in Java, you can use the SimpleDateFormat class.
Convert date to datetime in Python
You can convert a date to datetime in Python using the datetime module.
How do I get the day of week given a date?
You can use the datetime module in Python to get the day of the week for a given date.
How to change date format in a Java string?
To change the date format in a Java string, you can use the SimpleDateFormat class.
How to check if a date is in a given range?
In PHP, you can use the DateTime class to check if a date is within a given range.