If the given date pattern is below,
2004-7-7
How can I convert this into below pattern,
2004-07-07
Using datetime.datetime or some built in function? I don't want to use the replace or string formatting. Does python provide anything (builtin function) to help in such scenario?
Thanks