Previously, I wrote about calculating age from a date of birth in Rails. And, now let’s do it in javascript using moment. import moment from 'moment'; export const getAge = (dob: string) => { const parsedDob = moment(dob); if (!parsedDob.isVali...
A web developer in Ruby on Rails and React
My personal blog about software development and other topics.
Markdown supported · ⌘↵ to post
No responses yet.