changed date formats and restricted quantities to integers