I am facing in issue with appwrite when I store datetime type from front end and the backend side is Daytime type it gives error. When I have attribute with integer type it gives an error also with Datetime.now() #🗂│support #support @Eldad @Aditya Oberai
Hi, thank you for your question. Date.now() is unix timestamp - seconds/milliseconds since specific date. What datetime attribute needs is ISO string of date.
var now = new DateTime.now();
var dateFormatted = DateFormat("yyyy-MM-ddTHH:mm:ss").format(now);
then you use dateFormatted as value for DateTime attribute in Appwrite, and it should work.
Recommended threads
- Fix Android OAuth2 page not being resume...
I've opened a PR a while back that fixes Flutter OAuth2 authentication with recent `flutter_web_auth_2` version, that didn't get much attention: * https://githu...
- `type 'Null' is not a subtype of type 'b...
When creating a new file using Appwrite Flutter SDK, the file is successfully created on the server, but the client throws the following exception: ``` type ...
- login With OAuth Failed
login With OAuth Failed: when i cliick to login with any of the following (facebook, gmail or apple) am being redirected out of the app to enter my detail, afte...