Ditto formats timestamps with the use of "strftime" function and therefore you need to refer this function instead of "date". The correct modifier for the day without leading zero -- within "strftime" function -- is "%e". "%j" stands for day of year (0..366), so your strange number is quite correct.