MCPcopy Index your code
hub / github.com/adobe/react-spectrum / formatDateLabel

Function formatDateLabel

scripts/sendWeeklyExcelSheet.mjs:27–33  ·  view source on GitHub ↗
(dateStr)

Source from the content-addressed store, hash-verified

25}
26
27function formatDateLabel(dateStr) {
28 let d = new Date(dateStr + 'T12:00:00Z');
29 let mm = String(d.getUTCMonth() + 1).padStart(2, '0');
30 let dd = String(d.getUTCDate()).padStart(2, '0');
31 let yyyy = String(d.getUTCFullYear());
32 return `${yyyy}.${mm}.${dd}`;
33}
34
35async function uploadToSlack(buffer, filename, message) {
36 // Step 1: get upload URL

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected