#110 add moment examples
- Status
- New
- Priority
- Normal
- Assigned to
- Volkan Ozcelik
- Category
- Lessons
- Version
- None
import * as moment from 'moment';
let today = moment().startOf('day');
this.from = today.toDate();
this.fromToday = today.format('YYYY-MM-DD');
this.daysOut = 1;
this.startMonday = moment().startOf('isoWeek').format('YYYY-MM-DD');
this.endSunday = moment().endOf('isoWeek').format('YYYY-MM-DD');
this.firstOfMonth = moment().startOf('month').format('YYYY-MM-DD');
this.lastOfMonth = moment().endOf('month').format('YYYY-MM-DD');
History
| 14 Jul 2018, 02:53 | Volkan Ozcelik submitted the bug |