surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.01k stars 780 forks source link

Add dateDiff function into function factory #8357

Closed andrewtelnov closed 3 weeks ago

andrewtelnov commented 4 weeks ago

dateDiff({firstDate}, {secondDate}, {types}); Where types is: "years" | "months" | "days". The default value is "days". Function age({birthDate}) get the optional second argument types, the default value is "years".