can anyone help me on how to done w/ this for example i choose

9/1/2011 i want to get the previous date 8/31/2011.

help me please.

Recommended Answers

All 3 Replies

Get the value into variable of type date and do date-1 using date functions.

Hi!

Have a look at this code:

Dim dt As DateTime = DateTimePicker1.Value.AddDays(-1)

thanks shahan :)

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.