MCPcopy Index your code
hub / github.com/MALSync/MALSync / returnYYYYMMDD

Function returnYYYYMMDD

src/utils/general.ts:861–867  ·  view source on GitHub ↗
(numFromToday = 0)

Source from the content-addressed store, hash-verified

859}
860
861export function returnYYYYMMDD(numFromToday = 0) {
862 const d = new Date();
863 d.setDate(d.getDate() + numFromToday);
864 const month = (d.getMonth() + 1).toString().padStart(2, '0');
865 const day = d.getDate().toString().padStart(2, '0');
866 return `${d.getFullYear()}-${month}-${day}`;
867}
868
869export function htmlDecode(text) {
870 return $('<textarea/>').html(j.html(text)).text();

Callers 3

fixDatesFunction · 0.90
startWatchingMessageFunction · 0.90
finishWatchingMessageFunction · 0.90

Calls 2

setDateMethod · 0.80
getDateMethod · 0.80

Tested by

no test coverage detected