Only by language and . NET, no, because both return DateTime. What you can do is intuit this by checking in your variable if the number of seconds is equal to zero (which is what DateTime.Now.Date seek to make):
if (meuDateTime.TimeOfDay.TotalSeconds == 0)
{
Console.WriteLine("Aparentemente atribuição veio de DateTime.Now.Date.");
} else {
Console.WriteLine("Atribuição veio de DateTime.Now.");
}
It is worth noting that this test does not have 100% accuracy, because nothing prevents DateTime.Now to be shot at the exact second zero of a given day, but that’s a bit remote from happening.
Received what values?
– Maniero
Variable date.
– rubStackOverflow