Useful when you get date-only values from you DB and want to have them as Date objects in your model, but stringify to YYYY-MM-DD for your JSON API consumers.
const DateOnly = ; const dateOnly = ;console; // "2016-01-07"console; // 2016-01-07 // pass DateOnly instance to Date to convert to normal dateconst normalDate = dateOnly;console; // 2016-01-07T12:34:13.769Z // pass normal date to DateOnly to convert to DateOnlydateOnly = normalDate;console; // "2016-01-07"