fixed issues with dateformatting.