How do I make the date transfer correctly?