Changed variables based in date to integer