I am using get_timestamp() to get timestamp, the return I am getting is:
2010-10-5T11:12:34
But what I need is 2010-10-05T11:12:34
I need date in format of dd even if its a one-digit date. Is there a way I can do it? can i specify format while using get_timestamp()?
You didn’t actually specify what module
get_timestamp()is from. But throw it away, and use DateTime: