Fix date format for ddply