austine_power007 Posted December 1, 2006 Share Posted December 1, 2006 I am using PHP and Microsoft Access 2003 i store date field as a short date.........but when i retrieve data from Access 2003 it shows me something like 2006-11-30 00:00:00 I retrieved the date from database and stored the date into a variable names $date .......I just want the date as mm/dd/yy ....How can i do that please help me. ??? Link to comment https://forums.phpfreaks.com/topic/29100-date-retrieval-from-access-2003/ Share on other sites More sharing options...
craygo Posted December 1, 2006 Share Posted December 1, 2006 Use the date function.[code]<?php$fdate = $myvarname;$date = date("m/d/y", strtotime($fdate));?>[/code]Ray Link to comment https://forums.phpfreaks.com/topic/29100-date-retrieval-from-access-2003/#findComment-133419 Share on other sites More sharing options...
austine_power007 Posted December 1, 2006 Author Share Posted December 1, 2006 [quote author=craygo link=topic=116976.msg476987#msg476987 date=1164983387]Use the date function.[code]<?php$fdate = $myvarname;$date = date("m/d/y", strtotime($fdate));?>[/code]Thanks a lot man it helps me a lot .........Ray[/quote] Link to comment https://forums.phpfreaks.com/topic/29100-date-retrieval-from-access-2003/#findComment-133425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.