mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
* Add getReleaseUrl function * Implement * Add emoji * tmp * Update jest * Test works * Add comment * Empty lines to tigger netlify build Co-authored-by: fisker Cheung <[email protected]>
9 lines
329 B
JavaScript
9 lines
329 B
JavaScript
// TODO: Implement this in `utils.js` when jest.importActual is landed.
|
|
export default function getFormattedDate() {
|
|
const date = new Date();
|
|
const year = date.getFullYear();
|
|
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
const day = String(date.getDate()).padStart(2, "0");
|
|
return { year, month, day };
|
|
}
|