[SOLVED] Current Date

In SC7
How do I retrieve Todays date to a variable ?
SC7 seems to have a lot of date functions except getting todays date

Can anyone help

[SIZE=4]Example to get current date[/SIZE]


$var=date("Y-m-d");

[SIZE=4]Example to get current date and time[/SIZE]


$var=date("Y-m-d H:i:s");

Thanks - it works

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx