473,382 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

DateTimePicker custom format

347 100+
Is there anyway to custom format the DateTimePicker so that users can only select weekdays?

Thank you,

Doug
Jun 29 '10 #1

✓ answered by ThatThatGuy

@dougancil
Then i guess you need to write your own custom control...

4 2469
ThatThatGuy
449 Expert 256MB
@dougancil
Then i guess you need to write your own custom control...
Jun 30 '10 #2
dougancil
347 100+
ThatThatGuy,

What I was asking is what would be the format or if anyone has done that? I have read the MSBOL and it doesn't give a lot of info about how to select specific dates other than how to do days or weeks or months at a time. I was asking if anyone had done this so I don't have to reinvent the wheel if someone had the code handy.

Thanks

Doug
Jun 30 '10 #3
Label2.Text = Format(DateTimePicker1.Value, "dddd") ==in this code it shows the current day..it is it?
Jul 1 '10 #4
sorry,,i misquoted your requirement..
Jul 1 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kolmi | last post by:
Has anyone come across a solution to this ? To format a value into an Sql Server sql string, I want to use the call Convert.ToString( value, new MyFormatProvider() ); Why I have to do this...
4
by: Gary Miller | last post by:
Using the custom format "ddd MMMM d h:mm tt". DataBindings.Text is set to my dataset field. Control displays properly, I am able to change date values but the moment I click the save button,...
7
by: Guy Corriveau | last post by:
Got a dateTimePicker o o.Format = DateTimePickerFormat.Custom; o.CustomFormat = "MM/dd/yyyy hh:mm tt"; the previous code work well when the Regional option is set to english Canadian but...
1
by: Jim Heavey | last post by:
Hello, I am trying to alter the default date format shown in the date picker control. I am using the "Custom Format" property and setting this value to "ddd M/d/yy", but this has no effect. What...
2
by: fred | last post by:
I am trying to Copy and paste using a custom format but I canot retrieve the data. In the main Form's class I have declared: Dim myDocmanFormat as DataFormats.Format then in the New Sub of...
0
by: msnews.Microsoft.com | last post by:
Hi , Not able to figure out the way to format numeric fields. Code snippet Dim ColStyle3 As New DataGridTextBoxColumn With ColStyle3
0
by: Mannfred | last post by:
I've written a complex web service in C# to be used by SmartDevices and I'm trying to reduce size of the message to the absolute minimum to save on cost, every byte counts etc. Is there any way...
2
by: Adam Right | last post by:
in gridview how can i custom format a decimal value for BoundField column ? i want to set 125.25000 ---125,25 5.20000 -->5,2 45.00000 --45 I am using DataFormatString="{0:#,#.##}" but...
2
by: KA NMC | last post by:
I've noticed something strange when using the code below with a DateTimePicker wondering anyone else noticed or knows why this happens Dim ws As String ws = "Not Available" ...
4
by: phpmagesh | last post by:
Hi, I have to show system date in custom format For example: 2009/Oct/06 I want to show date in above format. how to get this output . i used the below format
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.