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
33 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
9 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
1answer
53 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
0answers
90 views

How to disable Saturday and Sundays from SharePoint 2013 DateTime control through codebehind

Firstly, is that possible at all because I am able to do it using java script but due to some requirement change, i have to do it from code behind. Can anyone help me out in this case. DateTime ...
0
votes
1answer
210 views

Getting Error While Save

In my webpart, I have added a SharePoint datetime control DateTimeControl dateTimeControl = new DateTimeControl(); dateTimeControl.ID = "dateTimeControl"; dateTimeControl.ClientIDMode = ...
1
vote
1answer
859 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 = ...
0
votes
2answers
638 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
4k 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
106 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" ...
0
votes
1answer
612 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
441 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 ...
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
1k views

Fire events on Selecting date on DateTimeControl

How to fire event when selecting date on DateTimeControl?