Add date reference gen function
Make wrapper datref generator