-
Is there any method to get week day from a date_time object? weekday = the_method(obj.created_at) |
Beta Was this translation helpful? Give feedback.
Answered by
hramezani
Jun 11, 2025
Replies: 1 comment
-
If the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sam1365
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the
obj.created_at
is ajdatetime.datetime
object, you can useobj.created_at.strftime('%A')
. you have to set the locale before.