Online Files Compiler

Code, compile, and run Files programs online. Write your code in this editor and click the "Run" button to execute it.

Code
import os
import datetime

with open("today.txt", "w+") as file:
    file.write(datetime.datetime.now().strftime("%Y-%m-%d"))