Converting date from float to int