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
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...