BearStudio / start-ui-web

πŸš€ Start UI [web] is an opinionated UI starter with 🟦 TypeScript, βš›οΈ React, ⚫️ NextJS, ⚑️ Chakra UI, 🟦 tRPC, πŸ” Lucia Auth, β–² Prisma, πŸ–οΈ TanStack Query, πŸ“• Storybook, 🎭 Playwright,πŸ“‹ React Hook Form,β—½From the 🐻 BearStudio Team
https://demo.start-ui.com
MIT License
1.39k stars 129 forks source link

Feat - Handle basic date formatting using i18n #401

Closed ntatoud closed 6 months ago

ntatoud commented 1 year ago

Describe your changes

closes #391

Following the code snippet given by @yoannfleurydev, I implemented a default date formatter and displayed the possibility to create cutom ones inside the formatters.ts file

For the default date formatter, I decided to use dayjs since it was already used in Start UI and because it provides a simple and easy-to-use format function.

Screenshots

Usage in the code : code

Result : result

Checklist

vercel[bot] commented 1 year ago

@ntatoud is attempting to deploy a commit to the Team Bearstudio Team on Vercel.

A member of the Team first needs to authorize it.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication