I try to compare these 2 dates in string format but it couldnt work out {
SqlCommand cmd =new SqlCommand($"SELECT Last_Login_Date FROM [dbo].[Member] WHERE EmailAddress='{emailAddress}');") ;
SqlDataReader reader = cmd.ExecuteReader();
string lld = reader["Last_Login_Date"].ToString();
string currentDate = DateTime.Now.ToString();if (DateTime.Parse(lld,currentDate))
}
compare these 2 dates in string format? what's wrong with converting them intoDateTimeand compare them ?