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
- Document Data is null.
I'm using flutter and I've just got everything set up, the document meta data is null but the actual query is fine. (see screenshot) The permission I have ar...
- cli 5.0.5 command for pull and push of d...
Hi i am using selfhosted appwrite 1.5.10, for migration (duplicate project) purpose i am using cli 5.0.5, but i am unable to find commands for pull and push, wh...
- Do I need Redis if using appwrite
Saw appwrite has built-in redis, but does this work for listdocuments, getdocument and other query etc? what does the appwrite redis covers under the hood?
