MCPcopy Create free account
hub / github.com/OpenSignLabs/OpenSign / getYear

Function getYear

apps/OpenSign/src/constant/Utils.js:153–156  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

151};
152//function for get year
153export const getYear = (date) => {
154 const newYear = new Date(date).getFullYear();
155 return newYear;
156};
157export const years = range(1950, getYear(new Date()) + 16, 1);
158export const months = [
159 "January",

Callers 7

DatePickerFunction · 0.90
PlaceholderFunction · 0.90
PrefillWidgetModalFunction · 0.90
handleWidgetTypeFunction · 0.90
getWidgetTypeFunction · 0.90
DateWidgetFunction · 0.90
Utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected