If you have a string like this:
string fecha_de_prueba = "2/8/2017 10:26:35 AM";
Of which you only want to obtain the day, month and year, you can choose:
Separate the value of the string fecha_de_prueba
as follows:
string fecha_de_prueba = "2/8/2017 10:26:35 AM";
string fecha_ddmmyyyy = fecha_de_prueba.Split(' ')[0];
// Resultado: 2/8/2017
Or, simplified:
string fecha_de_prueba = "2/8/2017 10:26:35 AM";
fecha_de_prueba = fecha_de_prueba.Split(' ')[0];
// Resultado: 2/8/2017
To compare the dates, you can do the following:
DateTime fecha_actual = DateTime.Today;
// Valor: 08/02/2016 00:00:00
string fecha_de_prueba = "2/8/2017 10:26:35 AM";
DateTime fecha_a_comparar = DateTime.Parse(fecha_de_prueba.Split(' ')[0]);
// Valor: 02/08/2017 00:00:00
// Aquí validas que los días de ambas fechas sean las mismas
// (tal como indicas en tu pregunta).
if (fecha_actual.Day == fecha_a_comparar.Day) {
// TODO: Ejecutar tu código.
}