localhost Posted August 16, 2006 Share Posted August 16, 2006 i am using a dateline, so for making registered date, the regdate is mktime();i can easily decode it by putting date("dateformat", $dateline);so i am making a function to decode the time in my format...not sure why its not working, probably something simple.[code=php:0]function decodeTime($dateline){ date("m-d-Y h:i A", $dateline); return $dateline;}[/code]any ideas? Link to comment https://forums.phpfreaks.com/topic/17781-simple-function-not-working/ Share on other sites More sharing options...
king arthur Posted August 16, 2006 Share Posted August 16, 2006 Try[code]function decodeTime($dateline){ return date("m-d-Y h:i A", $dateline);}[/code] Link to comment https://forums.phpfreaks.com/topic/17781-simple-function-not-working/#findComment-75935 Share on other sites More sharing options...
localhost Posted August 16, 2006 Author Share Posted August 16, 2006 worked wonderfully! thanks! Link to comment https://forums.phpfreaks.com/topic/17781-simple-function-not-working/#findComment-75940 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.