I need to find the UTC equivalent time for the PDT time.
So that I have implemented the code which is as follows:
        utc = pytz.utc
        local = pytz.timezone ("America/Los_Angeles")
        begin_localize = local.localize(begin)
        begin = begin_localize.astimezone(utc)
        end_localize = local.localize(end)
        end = end_localize.astimezone(utc)
It is generating the output as follows:
2016-04-02 07:00:00+00:00
Type is as follows:
<type 'datetime.datetime'>
Even though it is working fine, My backend needs a value which in the format as follows:
2016-04-02 00:00:00 
Also should be of type type 'datetime.datetime'.
Someone help me with the way of achieving the same.
 
     
    