For the billing purpose, I have code which will generate necessary data as needed.
But there is one issue I am currently facing with the time gap.I have idea of fixing the same by adding the default time value.
To be precise consider the following date time object value.
2016-03-22 05:36:07.703078
2016-04-21 05:36:07.703078
One is the value of begin date and whereas another one is the value of end date.
Now I need to set the begin date as "2016-03-22 00:00:00" and end date as "2016-04-21 23:59:59".
Here it is a code, I have used for creation of begin date and end date.
# begin date and end date set
begin = date - dateutil.relativedelta.relativedelta(months=1)
print(begin)
print(type(begin))
end = date - dateutil.relativedelta.relativedelta(days=1)
print(end)
Someone let me know the way to achieve this.