write year, month, day