datetimepicker

How to contol the time interval in a DateTimePicker

I have a DateTimePicker control on a form specified like so: dtpEntry.Format = DateTimePickerFormat.Custom; dtpEntry.CustomFormat = "dd/MM/yyyy hh:mm:ss"; dtpEntry.ShowUpDown = true; I would like the user to only be able to increment or decrement the time by 5 minute increments. Any suggestions on how one would accomplish this? ...

BlackBerry:Built-in Date Picker API?

Hi All, In my application screen, i am having a field, where user can to choose his DateOfBirth. I want to popup any built-in "Date" calendar or some built-in Date picker to user, so that it will look professional. As i'm new to this development, i wanted to know there is any code sample available to popoup the built-in Date Picker? N...

BlackBerry - Creating custom Date Field

i want to create a field that looks like this ....can any one tell me how this could be done which field could i use where in i can select values by using the trackball/wheel or in case of storm i could slide... ...

Visual studio 2008 datetimepicker to oracle date and timestamp

im trying to insert data into my oracle database but i am getting "invalid month" error as it seems that i cant convert the datetimepicker value of my form into oracle date or timestamp(7) please help! my code dateTimePicker1.Format = DateTimePickerFormat.Custom; dateTimePicker1.CustomFormat = " dd MM yyyy "; string m = "insert into ...

Setting a date/time to a date time picker in .net 1.1

Hey Everyone, I have a datetime picker in one of our apps. When loading up the win form I need the date time picker to default to the Wednesday following todays date. Any idea how to do this? We are using .Net 1.1 for this app. Thanks, Mike ...

C# DateTime Parsing Problem

Hi, My current code looks like this: DateTime dateBegin = DateTime.ParseExact(begin, "MM/dd/yyyy", null); DateTime dateEnd = DateTime.ParseExact(end, "MM/dd/yyyy", null); But it throws an exception whenever the date in "end" is different. I get the dates from a DateTimePicker control, thus the date may look like "1/12...

how to show the hour & minutes on the DateTimePicker in C#

hello, I'm using C# .NET and I have a Windows Form with a DateTimePicker. My question is: who can I display on the form the hours and the minuts (to choose) along with the year, mounth and day? thanks! ...

Show a custom calendar dropdown with a derived DateTimePicker class

My goal is to create a custom DateTimePicker class in .NET 2.0, which shows a custom calendar dropdown instead of the Windows default calendar popup. By observing Windows messages (see attached code), I am able to find and hide/close the calendar window after creation. However, a problem remains: After the calendar window is closed, so...

This is an invalid webresource request. javascript datetimepicker

Hi I have a datetimepicker for one of the textbox control see below the code <script src="../client-scripts/date-picker.js" type="text/javascript"> "<td class="datafieldTBL" align="left"> <asp:TextBox ID="txtenddate" runat="server" Text='<%# Bind("EndDate")%>'></asp:TextBox> onclick="javascript:displayDatePicker('<%=formViewUser.Fi...

datagridview datetimepicker C# help

I have a datagridview with 10 columns. Every month the user will update new info in the grid. I would like to have a datetimepicker next to the binding navigator. The purpose of the datetimepicker is to scroll forward or backward month by month. If scrolling forward the datagridview creates a new datagridview with the same 10 columns pop...

Struts dojo use in jsp page for the end date functionality in java?

Hi, I am developing the jsp page in which i am using (<%@ taglib uri="/struts-dojo-tags" prefix="sx" %> library and which is using the Datetimepicker.I have tried to use it but i am stuck over here since some days. Datetimepicker giving the attributes Start-date and end-date, but i do not know the way how to use it as the dynamic values...

GWT Date Time Component

Is there a GWT Date Time Component? Note: I am already making use of the Date - Calendar component. I want to have time as an additional input. ...

How do I disable some dates on a DateTimePicker control?

I was wondering is it possible to disable selected dates in a DateTimePicker, so that user cannot select them. i know its possible in web forms but in windows forms im unable to do this.how can i achieve this. ...

DateTime convert to Date and then back to DateTime in C#

I use this to convert DateTime value into Date and then I add 00:00:00 and 23:59:59 to make sure whole day is taken into consideration when counting stuff. I'm pretty sure it's wrong way of doing things. What would be the right way? DateTime varObliczOd = DateTime.Parse(dateTimeWycenaPortfelaObliczDataOd.Value.ToShortDateString(...

DateTimePicker automatically move to next datepart

Currently, when using the datetimepicker, after you enter the month you have to either hit the right arrow or the "/" for it to move to the day. Is there a property that I can set or a way to know that the month is done and move to the day and move to the year after the user is done with the day? This is the same behavior with applicatio...

C# how to display datetimepicker control for all rows of gridview

Hi, In my application I am creating rows and columns dynamically. I created a column of type System.DateTime. After this i want to display datetimepicker control for all rows in that column. I created a column using dataTable.Columns.Add("CreatedOn", Type.GetType("System.DateTime")); and i am adding rows as foreach(String filename ....

wpf datetimepicker... change the clock

how can i change the style of the clock on datetimepicker ? ...

Custom date time picker for Windows Forms that is locked to GMT time

Using Visual Studio 2008, c#, .net 2.0. I have a Windows Forms client application that contains a scheduling UI section, currently this is housed only in the London office with the standard datetime picker control, the selected time is saved in a UK database (GMT) and a London based server aapplication processes the schedules. There ...

WinForms DateTimePicker Dialog?

I need to have a pop-up dialog like the Color Dialog or Save Dialog but for choosing a date from a calendar. The DateTimePicker is what I need, but I don't know how to launch this like a pop-up dialog in C#. ...

Best aproach for working with Time in WinForms?

I'm trying to make a field where user will enter amount of time per day he/she spent on a project per day. It can be from 30 minutes to 8 hours. Is DateTimePicker with CustomFormat hh:mm best choice for this? Or there's better alternative for WinForms C#? Maybe TextBox or MaskedTextBox with special settings? ...