Create date.xqm

ths module has grown like topsy and needs rework