Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [datetimecontrol]

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.

1
vote
0answers
18 views

How make publish by date MVC , sharepiont

I am working in site that publish the content by date so, every Thursday I will compare the date that the content approved to this Thursday date if its the same date (dependent on admin diction to ...
3
votes
1answer
125 views

DateTimeControl in MMMM/YYYY format

How to make a SharePoint:DateTimeControl use a MMMM/YYYY format so it let the user choose only month and year ?
1
vote
2answers
414 views

Possible to hide SharePoint Date time Control Based on that Dropdown Selection?

I was using SharePoint Date time Control, I want to hide this user control.But date time control textbox is hiding but the Calendar image is not hiding. else if (document.getElementById('<%=...
0
votes
1answer
103 views

When i select Date in SharePoint Dateimecontrol Defaulty 9/14/2016 12:00:00 AM?

In my page i was using SharePoint Dateimecontrol.But by default it will come date and time .I gave dateonly = true. <SharePoint:DateTimeControl ID="DateTimeControl1" runat="server" Visible="...
1
vote
0answers
770 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
1
vote
2answers
640 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
1k 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
255 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
23 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 ...
1
vote
3answers
1k 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 included ...
0
votes
1answer
520 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
2k 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
1k 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 ...
2
votes
3answers
7k 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
181 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="...
1
vote
1answer
2k 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
776 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:...
2
votes
3answers
4k 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 ...
1
vote
2answers
3k views

Fire events on Selecting date on DateTimeControl

How to fire event when selecting date on DateTimeControl?