https://github.com/rtasalem/js-utils
A collection of JavaScript utilities.
https://github.com/rtasalem/js-utils
code-snippets javascript utilities
Last synced: 7 months ago
JSON representation
A collection of JavaScript utilities.
- Host: GitHub
- URL: https://github.com/rtasalem/js-utils
- Owner: rtasalem
- Created: 2024-06-26T19:41:56.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T20:09:34.000Z (12 months ago)
- Last Synced: 2024-06-27T00:18:05.443Z (12 months ago)
- Topics: code-snippets, javascript, utilities
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JS Utils
A collection of JavaScript utilities.
## Contents
### 1. [Date](https://github.com/rtasalem/js-utils/blob/main/date)
- [convertCosmosTimestamp](https://github.com/rtasalem/js-utils/blob/main/date/convert-cosmos-timestamp.js): for converting the Unix timestamp automatically generated by Azure Cosmos DB (`_ts`) and converting it into a readable UK format e.g. `dd/mm/yyyy, hh:mm:ss`.
- [formatDateUk](https://github.com/rtasalem/js-utils/blob/main/date/format-date-uk.js): formats an existing date string by splitting apart the day, month, and year and rearranging into the UK date format.
- [generateTimestamp](https://github.com/rtasalem/js-utils/blob/main/date/generate-timestamp.js): for generating a timestamp in UK format e.g. `dd/mm/yyyy, hh:mm:ss`.