November 14, 201411 yr comment_157353 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, 201411 yr by Rophs Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.