use POSIX 'strftime'; $now = lc strftime("%d/%m/%y %H:%M:%S", localtime);