FluentDate Class
Create a FluentDate from a string or Moment date object. There are a few date formats to be aware of here.
- The words "Present" and "Now", referring to the current date
- The default "YYYY-MM-DD" format used in JSON Resume ("2015-02-10")
- Year-and-month only ("2015-04")
- Year-only "YYYY" ("2015")
- The friendly FluentCV "mmm YYYY" format ("Mar 2015" or "Dec 2008")
- Empty dates ("", " ")
- Any other date format that Moment.js can parse from Note: Moment can transparently parse all or most of these, without requiring us to specify a date format...but for maximum parsing safety and to avoid Moment deprecation warnings, it's recommended to either a) explicitly specify the date format or b) use an ISO format. For clarity, we handle these cases explicitly.