Fix date format to prevent spaces in file name