What and where does your script set as variables for month, day, year, hour minutes and seconds? That is what you need to use.
Looks like the script doesnt got such variable. Is it possible to add them to the script? And what is the code?
Thanks again