How-to articles, tricks, and solutions about DATE-FORMAT

Display current time in 12 hour format with AM/PM

To display the current time in 12-hour format with AM/PM in Java, you can use the SimpleDateFormat class and the Calendar class.

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 display a date as iso 8601 format with PHP

You can use the date() function in PHP to display a date in ISO 8601 format.

java.util.Date format conversion yyyy-mm-dd to mm-dd-yyyy

To convert the format of a java.util.Date object from yyyy-MM-dd to MM-dd-yyyy, you can use the SimpleDateFormat class and its format() method.