Write date and time to .txt in terminal

Joined
Dec 6, 2009
Messages
111
Reaction score
1
Points
18
Your Mac's Specs
Mac Mini 2010 2.4GHz, 8GB RAM, 320GB HDD, 320M
HI, i just want to write the dat and time to a .txt file

i tried "echo %date% %time% >> log.txt" (without quotation marks)
but it just writes "%date% %time%"

Can anyone help me?
 
OP
funkdabeat
Joined
Dec 6, 2009
Messages
111
Reaction score
1
Points
18
Your Mac's Specs
Mac Mini 2010 2.4GHz, 8GB RAM, 320GB HDD, 320M
Yay that worked thanks =]
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top