New to Appwrite and wondering how to format date time to just mm/dd/yy ?
- 0
- Self Hosted
- Databases
- General
thanks
Format it where?
when rendering the date on the page. User chooses the date and when it renders it shows 2025-02-15T00:00:00.000+00:00 . I just want the mm/dd/yy
You typically do that using your client side code. Most languages have a way to format dates
Err wait..what page?
snippet of the main.js file. It's just a index.html page. this is my second day trying out appwrite so sorry if this question isn't related to appwrite
Ahh welcome from 100Devs ๐
So JavaScript has ways to display dates localized for the user. And you can customize certain things too
So this is a basic method without many options: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString
Thanks. I'm reaching out to folks in the 100Devs community too. And I Appreciate the article and quick help
This one has many more options: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
Awesome! thanks. I'll give those a try.
one last thing. I've tried those resources and I can console log the correct format but it's still displaying an an ISO timestamp
Recommended threads
- Accidental deletion of two production da...
Hello Appwrite Support, We accidentally deleted two production databases and urgently need your help restoring them. What happened: On 2026-08-14 at approxima...
- hi guys! my site is not accesible in my ...
- [Solved] Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...