Rophs Posted November 14, 2014 Report Posted November 14, 2014 (edited) This little piece of simple code stores the date in @va and then prints it. There is no input and there is output. [php] (locations 1_0x0_1) //store today's date in @va @va[1]['date']['day'] = date('d'); //store day @va[1]['date']['month'] = date('m'); //store month @va[1]['date']['year'] = date('y'); //store year //print date from @va echo @va[1]['date']['month'] . "/" . @va[1]['date']['day'] . "/" . @va[1]['date']['year'] . "<br />"; echo "m/d/y"; [/php] For example, what the output would look like today is 11/14/14 m/d/y Edited November 15, 2014 by Rophs Quote
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.