Users Pricing

forum

Date Format Comparison Issue

marcel ethan 1901 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

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md