Commit 81e99219 authored by 赵杰's avatar 赵杰

日期显示年月

parent d8d1a407
...@@ -37,7 +37,7 @@ class UserCustomerDataAdaptor: ...@@ -37,7 +37,7 @@ class UserCustomerDataAdaptor:
self.customer_id = customer_id self.customer_id = customer_id
self.compare_index_id = index_id self.compare_index_id = index_id
p_end_date = pd.to_datetime(end_date).date() p_end_date = pd.to_datetime(end_date).date()
p_end_date = datetime.date(year=p_end_date.year, month=p_end_date.month, day=1) - datetime.timedelta(days=1) # p_end_date = datetime.date(year=p_end_date.year, month=p_end_date.month, day=1) - datetime.timedelta(days=1)
self.end_date = pd.to_datetime(str(p_end_date)) self.end_date = pd.to_datetime(str(p_end_date))
# self.end_date = pd.to_datetime("2020-12-11") # self.end_date = pd.to_datetime("2020-12-11")
p_start_date = datetime.date(year=p_end_date.year, month=p_end_date.month, day=1) p_start_date = datetime.date(year=p_end_date.year, month=p_end_date.month, day=1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment