How To Remove Leading Zeroes With Python Dates

How do you remove leading zeroes in Python formatted dates? I have been sending data through to a Suitescript API endpoint and have received the error that the date information I am sending through needs to be of the format D/M/YYYY, here’s the error specifically: " " " t n m y a e p m s e e s " " a : : g " " e e I " r N : r V " o A I r L n . I v S D a u _ l i F i t L d e D S _ d c V a r A t i L e p U t E v E " a r , l r u o e r " ( , m u s t b e D / M / Y Y Y Y ) " . . . Currently, the way the date is formatted and sent from my Python code is as follows: ...

June 3, 2023 · 3 min · 478 words · Ryan Sheehy