Archive for gruodžio, 2011

Converting date in PHP from yyyymmdd to yyyy mm dd format

gruodžio 12th, 2011

I have dates in the following format (yyyymmdd, 18751104, 19140722) and i need normal date (yyyy mm dd, 1875 11 04, 1914 07 22). 1. first you can use strtotime and date functions (this will fail with dates before the Unix epoch at the start of 1970. ) <?php // prints 1995 Oct 12 echo […]