(refs #341)Fix compilation error about date conversion