The time has been set to January 31, 2011
Using strftime(): The date today is 01/31/11
Step 1: Mark the elements with leading zeros: The date today is *01/*31/11
Step 2: Use a custom function to remove the leading zeros
strftime() function as the parameterstr_replace to replace any zeros with an asterisk with an empty stringstr_replace to replace any remaining asterisks with empty stringsstr_replace('*', '', str_replace('*0', '', '$marked_string))Use the following format: strftime("%Y-%m-%d %H:%M:%S", time()): 2012-05-17 15:19:01