... return sprintf "%04d-%02d-%02d", $year+1900,$month+1,$mday [download]
In reply to Re: displaying the current date by jweed in thread displaying the current date by bory