What's the actual problem? Do you know how to fetch the date/time value you want into a variable? Do you know how to include a variable in a format? That's all you need to know.
Caution: Contents may have been coded under pressure.
Comment on Re: localtime(time()) function in header