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
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Getting current user has been blocked
Getting current user has been blocked error while signing in the appwrite console. Got this during I am testing with the my saas web project. Please help to unb...