@heartinz/date_and_time_processor
v2.2.4
Published
{ timeISO: '2024-12-07T00:00:00.000+05:30', ----- "ISO" mmddyyyy: '12-07-2024', ----- "MM-dd-yyyy" ddmmyyyy: '07-12-2024', ----- "dd-MM-yyyy" yyyymmdd: '2024-12-07', ----- "yyyy-MM-dd" yyyyddmm: '2024-07-12', ----- "yyyy-dd-MM" shortMonthForm
Downloads
603
Readme
Sample
{ timeISO: '2024-12-07T00:00:00.000+05:30', ----- "ISO" mmddyyyy: '12-07-2024', ----- "MM-dd-yyyy" ddmmyyyy: '07-12-2024', ----- "dd-MM-yyyy" yyyymmdd: '2024-12-07', ----- "yyyy-MM-dd" yyyyddmm: '2024-07-12', ----- "yyyy-dd-MM" shortMonthFormat: '07 Dec 2024', ----- "dd LLL yyyy" fullMonthWeekday: '07 December 2024, Saturday' ----- "dd MMMM yyyy, cccc" }
modifyISOTime
const originalTime = '2024-12-01T00:00:00.000+05:30';
// Example: Add 2 days, subtract 1 month, add 3 hours const modified = modifyISOTime(originalTime, { days: 2, months: -1, hours: 3, minutes: -15 });