Most used Java Date time methods

This page has some commonly used java Date time methods code blocks. These are required during reporting to append the files for timestamping using java and to calculate dates for functionalities which require calculation of date such as age calculation, date of expiry etc. during runtime.

Get Timestamp as a string

Get current Date Time

Change Date format