Hi ,
I am trying to convert a range of date from julian to gregorian date
here is what i have try
stmt=stmt.where(and_(rate.columns.journal_ctrl_num==fund.columns.journal_ctrl_num,fund.columns.account_code==selected_acc,rate.columns.date_entered.between(convert,convert1)))
result_proxy=connection.execute(stmt).fetchall()
for a in result_proxy:
test=datetime.date.fromordinal(int(a.date_entered))
the two date ranges are (convert and convert1)
but when i pass test parameter to the template it only display the start
date which is convert. I was wondering how to pass to date range to the
date_applied in test=datetime.date.fromordinal(int(a.date_entered))
i know from sql its done like this
rate.columns.date_entered.between(convert,convert1)
cheers
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAPCf-y4ZN8VgUQSbF90QE20ec7Qg5qbof8mnwYEQGTmEawkELw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.