added dateWithString:format method