Skip to content

Instantly share code, notes, and snippets.

@smkplus
Created September 29, 2023 09:01
Show Gist options
  • Save smkplus/1bb1e5d40693b9b25c0be0c2b68ea1f7 to your computer and use it in GitHub Desktop.
Save smkplus/1bb1e5d40693b9b25c0be0c2b68ea1f7 to your computer and use it in GitHub Desktop.
Get Persian Date
import jdatetime
# Get the current date in Persian
today = jdatetime.date.today()
# Print the full date in Persian
print(today.strftime("%A %d %B %Y"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment