date funktion and echo fail on file