How-to articles, tricks, and solutions about DATETIME
Convert column integer values into date expressions
To convert column integer values into date expressions in PHP, you can use the date function.
Convert date to datetime in Python
You can convert a date to datetime in Python using the datetime module.
Converting unix timestamp string to readable date
You can use the datetime module in Python to convert a UNIX timestamp string to a readable date.
Extracting just Month and Year separately from Pandas Datetime column
You can extract the month and year separately from a Pandas datetime column using the dt accessor.
Getting today's date in YYYY-MM-DD in Python?
You can use the datetime module in Python to get the current date in the YYYY-MM-DD format.
How do I get the current time in milliseconds in Python?
You can use the time module in Python to get the current time in milliseconds.
How do I get the current time?
To get the current time in Python, you can use the datetime module from the standard library.
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 do I parse an ISO 8601-formatted date?
You can use the datetime.fromisoformat() method to parse an ISO 8601-formatted date in Python.
How to add 5 minutes to current datetime on php < 5.3
You can use the strtotime function in PHP to add a certain number of minutes to a date and time.