I have a database timestamp with this format 2016-06-01 11:46:00
and I would like to convert and echo it to this format Wed. 01-06-2016
.I tried a lot but no desirable results..Any ideas?
Thanks a lot, it worked!
If I want the difference between today and the past date in days or weeks I think I use date_diff
.How exactly?