reactstrap-react-lib
Advanced tools
Comparing version
@@ -60,2 +60,3 @@ import { AgeType } from "../Interfaces/types"; | ||
getNextDayFromDate(IsoDateString: string): string; | ||
getPreviousDayFromDate(IsoDateString: string): string; | ||
getUTCOffset(timezone: TimeZomes): any; | ||
@@ -62,0 +63,0 @@ /** |
@@ -154,2 +154,11 @@ "use strict"; | ||
} | ||
getPreviousDayFromDate(IsoDateString) { | ||
// Parse the input date string to a Date object | ||
const date = new Date(IsoDateString); | ||
// Subtract 1 day | ||
date.setDate(date.getDate() - 1); | ||
// Format the previous day in YYYY-MM-DD format | ||
const previousDay = date.toISOString().split('T')[0]; | ||
return previousDay; | ||
} | ||
getUTCOffset(timezone) { | ||
@@ -156,0 +165,0 @@ const now = new Date(); |
{ | ||
"name": "reactstrap-react-lib", | ||
"version": "11.0.3", | ||
"version": "11.0.4", | ||
"description": "This is a lib for react and next", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
241446
0.32%3155
0.32%