Improving date conversions
Fix sparse key test