time registering -
1.new message will replace old
2.default date when no passed
used moment.js to calculate default date