Click here to Skip to main content
12,503,334 members (67,885 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
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
 
good
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.
  Permalink  
Rate this: bad
 
good
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
  Permalink  

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 | Mobile
Web02 | 2.8.160919.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2016
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