Handle date string