Appending text to end of a textfile
echo "text" >> file
date >> file
If you want to have just in one line
echo -n "text" >> file
date >> file
You can also use printf
instead. A one line solution would be
printf "\nsome text\n$(date)" >> file.txt