forum

Home / DeveloperSection / Forums / Date Format Comparison Issue

Date Format Comparison Issue

marcel ethan155806-Mar-2014

I need to execute an condition where after starting from 150 days from today using the system date format.

String test = DateTime.Now.ToString("dd.MM.yyy");

String test2 =DateTime.Now.AddDays(150).ToString("dd.MM.yyy");

if (test == test2)//Not sure how to do it in IF condition here for date tim

{

}

Any help on this would be great.


Updated on 06-Mar-2014

Can you answer this question?


Answer

1 Answers

Liked By