to print date & time