Corrected date generation