austine_power007 Posted December 13, 2006 Share Posted December 13, 2006 i wanna make my date function like mm/dd/yy here is the code i explode my date how i can make this date join together[code]<input type=\"text\" name=\"act_dat\" value=\"{$actual[0]}$actual[1]\" size='01'><span class='style12'>dd</span><input type=\"text\" name=\"act_mon\" value=\"{$actual[3]}$actual[4]\" size='01'><span class='style12'>mm</span><input type=\"text\" name=\"act_yr\" value=\"{$actual[6]}$actual[7]\" size='01'><span class='style12'>yy</span>[/code][color=red][b]this code gives me date like: 20/12/06i want to join all and put it inside a variable so that i can update database[/b][/color][b]E.G: i am using Microsoft Access 2003[/b] Link to comment https://forums.phpfreaks.com/topic/30456-join-date-after-explode/ Share on other sites More sharing options...
simcoweb Posted December 13, 2006 Share Posted December 13, 2006 Question: Instead of having an input form post the date, why don't you just set the date yourself when the form is submitted? That way you can easily pass it in a variable and into the database. Something simple like this:$date = date("F j, Y"); Link to comment https://forums.phpfreaks.com/topic/30456-join-date-after-explode/#findComment-140254 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.