Added method to compute unreg date dynamicaly

please comment this pull-request.
It allows to set an unreg date with null year or no year.