SharePoint brings its own controls and DateTime control is one of them. You can definitely leverage it in your web parts and custom aspx pages.

learn more… | top users | synonyms

1
vote
0answers
78 views

SharePoint DateTime Control Change Event

I have SharePoint DateTime control and I want to execute some code whenever the user changes the date using JQuery or JavaScript. Thanks
0
votes
2answers
105 views

Sharepoint DateTimeControl hour reset on postback

I have a SharePoint DateTimeControl inside of an UpdatePanel. The issue I am experiencing is that when a postback occurs inside the panel the hour section of the DateTimeControl always gets reset to ...
0
votes
1answer
147 views

Alternatives for SharePoint date field calender

Our users complaints that the date calendar control on SharePoint forms are not user friendly. And you can navigate only month by month as shown in below image. I found this article to replace the ...
1
vote
0answers
91 views

How do i query date range comparisions in sharepoint 2013 list using JSOM

I need to compare date ranges the result should be between start date and end date. I am using Sharepoint:DateTimeControl picker and get the date using jquery, then converted date like startDate =...
1
vote
0answers
12 views

Event for DateTime Controller, when the DateTime Controller is Cleared

I am using a DateTime Controller with an event validator (Required Field). I need to fire an event when a user clears the DateTime Controller (Empty). I was trying to do this in ...
0
votes
2answers
333 views

SharePoint DateTimeControl does not render the calendar in web part

I have created a web part for creating new list item using VS. Web part has a DateTime Control. If I click on Calendar icon then it does not render it, rather gives a server error. I have ...
0
votes
1answer
369 views

Getting Error While Save

In my webpart, I have added a SharePoint datetime control DateTimeControl dateTimeControl = new DateTimeControl(); dateTimeControl.ID = "dateTimeControl"; dateTimeControl.ClientIDMode = System.Web.UI....
1
vote
1answer
1k views

Unable to assign date to date picker control using javascript

I want to set the today's date to the DateTime control of sharepoint. My code is: $(document).ready(function () { var today = new Date(); var dd = today.getDate(); var mm = today.getMonth(...
0
votes
2answers
958 views

Set the range of datetimecontrol

i have 2 DateTimeControl on my aspx page. Is it possible to make that the second one begin at the selected date of the first one and make all the previous dates disabled? I tried this on the code ...
1
vote
3answers
5k views

Unable to validate sharepoint date time control

I have added a <SharePoint:DateTimeControl> in my visual web part and I want to make it mandatory. To do so I referred this link and used as per my code. My code is: <tr> <td> ...
0
votes
1answer
153 views

Adding a DateTime object to a List

I'm quite nice to Sharepoint so pardon my lack of knowledge. In my web part design, I am using this to obtain date and time from the user: <SharePoint:DateTimeControl ID="interviewSlot" runat="...
0
votes
1answer
838 views

DateTimeControl position issue

I am trying to add DateTimeControl to my webform dynamically within a Panel which is preparing form fields dynamically. The form is long and placed on a jquery tab and have added scroll bar by ...
1
vote
2answers
551 views

Error Rendering Control: Object reference not set to an instance of an object

I am exploring on trying to create a custom webpart and I am encountering this error: In my source, I have a table in which a cell will contain SharePoint:DateTimeControl. However it will <asp:...
0
votes
3answers
3k views

SharePoint:DateTimeControl Crashes in SP2013 Webpart

I have implemented the SharePoint:DateTimeControl in a very simple webpart <SharePoint:DateTimeControl ID="dtStartdate" runat="server" DateOnly="true" /> The problem is when I click on the ...
0
votes
2answers
2k views

Fire events on Selecting date on DateTimeControl

How to fire event when selecting date on DateTimeControl?