New way to handle date

No more memcpy for date. It seems to be f**king unstable