Print current date/time in email

Posted on
Wed Oct 06, 2021 4:20 pm
SMUSEBY offline
Posts: 511
Joined: Sep 16, 2009
Location: California

Re: Print current date/time in email

Elegant.
Thanks.

Posted on
Sun Oct 10, 2021 5:01 pm
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Print current date/time in email

Python

Code: Select all
x = datetime.datetime.now()
cur_date_time = x.strftime("%m/%d/%Y %I:%M %p")

Who is online

Users browsing this forum: No registered users and 1 guest

cron