Users Pricing

forum

home / developersection / forums / date format comparison issue

Date Format Comparison Issue

marcel ethan 1864 06 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.


marcel ethan

Other


1 Answers