private DateTime return_datetime_data(string ip_str) { if (ip_str.Trim() == "" ) { return DateTime.Now; } return DateTime.Parse(ip_str); }