fixes for date format utils.. performance chagnes to avoid string conversion