Removed folder variable as it is not used.
Added format parameter to display the date correctly.
Added format parameter to display the date correctly.