Open kode2go opened 3 years ago
Current date and time : 2014-07-05 14:34:14
from datetime import datetime currentDate=(datetime.now()) currentDateStr=str(datetime.now()) print(currentDate.strftime("%Y-%M-%d %H-%M-%S")) print(currentDateStr[0:19])