Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Change format of datetime
Post: RE: Change format of datetime

I'm sorry ichabod801, I'm at my phone at the moment and should've waited til I could test it some more and give you more info that "no luck". I'll get back on this later :) Thanks again!,
Jonas85 General Coding Help 6 3,515 Feb-05-2019, 03:47 PM
    Thread: Change format of datetime
Post: RE: Change format of datetime

(Feb-04-2019, 08:52 PM)ichabod801 Wrote: What is not working? >>> text = '2019-04-02' >>> nums = [int(x) for x in text.split('-')] >>> dt = datetime.date(*nums) >>&g...
Jonas85 General Coding Help 6 3,515 Feb-05-2019, 03:40 PM
    Thread: Change format of datetime
Post: RE: Change format of datetime

(Feb-04-2019, 06:53 PM)ichabod801 Wrote: It sounds like you want the strftime method of the date object. >>> today = datetime.date.today() >>> today.strftime('%b %d') 'Feb 04'Full...
Jonas85 General Coding Help 6 3,515 Feb-04-2019, 07:34 PM
    Thread: Change format of datetime
Post: Change format of datetime

Hi! I just got a e-paper display and downloaded a nice script to let it get weather, my schedule and such. The script does put the date for every schedule entry in the format YYYY-mm-dd, and I've fou...
Jonas85 General Coding Help 6 3,515 Feb-04-2019, 05:50 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020