
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
- OAuth2 with IPhone When users enables "H...
I am using Appwrite OAuth2 to authenticate users in my app (Flutter) Normally, I am using the user's email for the authentication, when he first registers , and...
- Still showing this after complete my pay...
This project is in readonly mode. Please contact the organization admin for details.
- flutter_web_auth_2 needs to be updated!
The appwrite SDK is using an old version of flutter_web_auth_2 which I beleive is now deprecated, or atleast, isn't working for me. iOS, Linux, Web, Windows stu...
