当您执行strftime('%Y-%m-%d %H:%M:%S') 时,您已经获得了日期时间对象的字符串格式。当你在做{{ model.datetime|date:'d FY' }} 时,你只是对字符串对象再做一个操作,这就是它返回空的原因。date = datetime.now()==> datetime.datetime(2019, 4, 5, 11, 40, 17, 869441)date.strftime('%Y-%m-%d %H:%M:%S')==> '2019-04-05 11:40:25.941187' // This is just a string at this point you cannot further do date operations on it要执行诸如{{ model.datetime|date:'d FY' }} 之类的日期操作,您应该只对Datetime对象进行操作。