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') 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 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 Link to comment https://forums.phpfreaks.com/topic/70031-solved-getting-todays-dat/#findComment-351701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.