I have a problem to solve . i have a product that has a date of published and i know what day is today by using DateTime s = DateTime.Now; how can i get a number from user to
get the day of publishing a product
the result of all i want to know can I use a product or no if I know that time it expiried is one year .I get from user(I don't know how?) day of it publishing and sum to it one year if it's grater than today it's OK if not send message or something

Your question makes little sense.

The date time functions have plenty of thigns to help you, you can use standard logic on a date time value..

Read first, ask second.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.