jim.davidson Posted September 20, 2007 Share Posted September 20, 2007 I want to store todays date in a variable example: $myDate = 09/20/2007 I tried this and won't work. How do I get the slashes into the $myDate? $myDate = date('d'/'m'/'Y') Quote Link to comment https://forums.phpfreaks.com/topic/70031-solved-getting-todays-dat/ Share on other sites More sharing options...
troy_mccormick Posted September 20, 2007 Share Posted September 20, 2007 <?php $current_date = date("m/d/Y"); ?> http://us3.php.net/date Quote Link to comment https://forums.phpfreaks.com/topic/70031-solved-getting-todays-dat/#findComment-351695 Share on other sites More sharing options...
jim.davidson Posted September 20, 2007 Author Share Posted September 20, 2007 Why didn't I think of that..Thank you Quote Link to comment https://forums.phpfreaks.com/topic/70031-solved-getting-todays-dat/#findComment-351701 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.