Question: how to change the date in unix?
Answer: You can use e.g. date --set='-2 years' to set the clock back two years, leaving all other elements identical. You can change month and day of month the same way. ... 
Assuming you're trying to set the date to the current time, you could do sudo ntpd -gq to have the system update automatically using the ntp service. –