birdie Posted April 18, 2006 Share Posted April 18, 2006 hi, can anyone please give me a script which transfers a timestamp into a date format like "4th may 2005". if not, please give me a method on how to do this. thanks, anything is greatly appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/7675-timestamp-to-date/ Share on other sites More sharing options...
AndyB Posted April 18, 2006 Share Posted April 18, 2006 Everything you need to know, you'll find in the manual section on [a href=\"http://ca.php.net/manual/en/function.date.php\" target=\"_blank\"]the date() function.[/a] Quote Link to comment https://forums.phpfreaks.com/topic/7675-timestamp-to-date/#findComment-27993 Share on other sites More sharing options...
Ninjakreborn Posted April 18, 2006 Share Posted April 18, 2006 I know in javascript you simply use there preset date functions, I think php has those 2. at www.php.net, and I am reading that book on www.hudzilla.com it will help alot, as you can learn all of php off that, or go to the functions section and look around through the ones about dates. Quote Link to comment https://forums.phpfreaks.com/topic/7675-timestamp-to-date/#findComment-27994 Share on other sites More sharing options...
Ninjakreborn Posted April 18, 2006 Share Posted April 18, 2006 also this might help I found it.[a href=\"http://www.hudzilla.org/phpbook/read.php/4_0_0\" target=\"_blank\"]http://www.hudzilla.org/phpbook/read.php/4_0_0[/a]specifically what you would need are chapters4.5. Working with Date and Time4.5.1. Reading the current time: time() and microtime()4.5.2. Converting from a string: strtotime()4.5.3. Converting to a string: date()4.5.4. Converting from components: mktime()hope that helps. Quote Link to comment https://forums.phpfreaks.com/topic/7675-timestamp-to-date/#findComment-28025 Share on other sites More sharing options...
birdie Posted April 18, 2006 Author Share Posted April 18, 2006 [!--quoteo(post=365865:date=Apr 18 2006, 04:28 AM:name=businessman332211)--][div class=\'quotetop\']QUOTE(businessman332211 @ Apr 18 2006, 04:28 AM) [snapback]365865[/snapback][/div][div class=\'quotemain\'][!--quotec--]also this might help I found it.[a href=\"http://www.hudzilla.org/phpbook/read.php/4_0_0\" target=\"_blank\"]http://www.hudzilla.org/phpbook/read.php/4_0_0[/a]specifically what you would need are chapters4.5. Working with Date and Time4.5.1. Reading the current time: time() and microtime()4.5.2. Converting from a string: strtotime()4.5.3. Converting to a string: date()4.5.4. Converting from components: mktime()hope that helps.[/quote]thanks that helps! Quote Link to comment https://forums.phpfreaks.com/topic/7675-timestamp-to-date/#findComment-28172 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.