
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() #馃梻鈹俿upport #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
- 503 Timeout when Updating or Upserting D...
Hey I鈥檓 running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: {聽聽"name":聽"upload-whitelist",聽聽"type"...
- Sites 30MB limit from GitHub
I鈥檓 deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it鈥檚 in a subdirectory with the root being an html landin...
