Click here to Skip to main content
13,085,936 members (89,858 online)
Rate this:
Please Sign up or sign in to vote.
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.
Posted 9-Jan-13 21:19pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100