https://github.com/timoanttila/javascript-date-modifier
JavaScript and Svelte components that convert the date to the desired format.
https://github.com/timoanttila/javascript-date-modifier
component date dates datetime javascript javascript-library svelte svelte-example sveltejs
Last synced: 26 days ago
JSON representation
JavaScript and Svelte components that convert the date to the desired format.
- Host: GitHub
- URL: https://github.com/timoanttila/javascript-date-modifier
- Owner: timoanttila
- Created: 2021-05-15T19:02:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-15T19:43:05.000Z (over 4 years ago)
- Last Synced: 2025-01-20T09:47:16.353Z (about 1 year ago)
- Topics: component, date, dates, datetime, javascript, javascript-library, svelte, svelte-example, sveltejs
- Language: Svelte
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Svelte Date modifier
I hate using extra third-party libraries, so I developed a component for Svelte that can change the format of time as desired.
The component changes the date to `21.06.2021 15:48`.
If `i` is not empty, an abbreviation of the day appears before the date (example `sun`).
If you have any tips on how I could get the extra at "klo" off without replaceAll, post a message.