Hi
I am working in datetime in django,this is the code in my forms.py
from_time = forms.DateTimeField(label="FromTime",
required=True,
input_formats=["%Y-%m-%d %H:%M:%S"],
widget=DateTimeInput(format="%Y-%m-%d %H:%M:%S"))
all the values of fields are stored in a dictionary variable say dd,when i try to write the value of the dictionary in a file it is in the form
from_time datetime.datetime(yyyy mm dd hh mm tzinfo=<UTC>)
can anyone suggest me how can i just get the value 2014 6 21 12 0 which is yyyy mm dd hh mm i need to take this value and set it as cron task
Thanks and regards
Rini