Click here to Skip to main content
15,311,717 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have date picker using c sharp.

in the run time it shows the current date.but i don't want the current date.the Date should be always be the monday date.not current date in run time.

how to do in the date picker.

And what is the problem?

You need to set the date at runtime in your code behind. Find the monday of the week you want (may be current date) and then set the datepicker selected value to it.

Try out.
You need reset DateTimePicker Property CustomFormat and Format.
The value of format Property should be the Custom;and then set the CustomFormat property,if you input 'ddd' ,you can see the monday in the run time

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900