1

I am trying to save a date from a Kivy app to a parse.com database using ParsePy and its Date() class.

For example, I create a date attribute for a restaurant object with:

restaurant.date = Date('%2014-%11-%15%0:%0:%0.%0%0')

However, when I try to save this to the database (with restaurant.save()), I get the error:

AttributeError: 'Date' object has no attribute '_date'.

Here is the link to the ParsePy Date() class I'm trying to use. How do I properly save a date using this?

mcastle
  • 2,882
  • 3
  • 25
  • 43

1 Answers1

0

Solved by doing the following:

import datetime

restaurant.date = Date(date=datetime.datetime(2014, 11, 15))
mcastle
  • 2,882
  • 3
  • 25
  • 43