SharePoint 2013 Create Only Time Column - sharepoint

I need to create a simple list column with the type of time and use it like a Start Time - End Time.
Recently, I found this sptimeonly and that's exactly all I really need. Unfortunately, looking at the instructions, I don't think it will work on SharePoint 2013 as it was obviously made for SharePoint 2010.
What choices do I have?
Do I need to develop some kind of custom field?
Is there any recommendation of where to start learning it? Kinda new to this platform, I'm sorry if these questions seem pretty basic.
Thanks!

I ended up using DateTime column with a default value of the Date set,
Then adding content editor webpart in the EditForm.aspx to embed css in order to hide the Date part.

Related

Year picker user control in sharepoint

I want to know is there any SharePoint native user control for year picker? I know there was another library like jQuery and other thing that do like what I want. I need SharePoint control for some localization issue.
There is no yearpicker control but you can use the SharePoint DateTimeControl for selecting dates or datetimes.
Unfortunately i think its rather hard to customize it to only select years. Therefor i would suggest to use an external lib for that or just use a dropdown with dates to select?
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.datetimecontrol.aspx

How to change the color of a task list row when the due date comes nearer

I have a task list and it has a column called Due Date. So when your Due Date draws new, the row changes to the color orange, and when the Due Date is passed, then it changes to red. So it is done dynamically comparing the Current Date to Due Date.
Has anyone accomplished this kind of solution?
I'd recommend the use of SharePoint Designer to build a Data View Web Part over using JavaScript (which is reliant on being injected via a CEWP, or via the masterpage).
Here's a tutorial for creating conditional formatting rules in a DVWP, which may prove helpful.
http://blog-sharepoint.blogspot.com/2009/05/data-view-conditional-formatting-using.html
I'm just going to nod knowingly towards this post:
Sharepoint webpart for conditional formatting?
And not remention the thing I mentioned over there that I feel slightly guilty about mentioning in the first place.
You can add javascript to the target page, where loop through all rows (), looking in DueDate column and mark that rows as you wish. This is the simpliest solution I know. For achieve this you need to look to target page HTML markup.
UPD:
You didn't say what Sharepoint version you are using. There is a better solution for 2010, explore this link: http://www.sharepoint.stackexchange.com/questions/7478/highlight-row-color-based-on-field-values-in-sharepoint-2010-list-view
There are third party add-ons(sharepoint highlight rows) that allows you highlight SharePoint list rows based on field values.

moss 2007 workflows

I'm new to MOSS 2007. I need to create a workflow that looks at a document's review date (a select list predefined to values of 3 , 6 or 12 months) then send an email if the review date has passed.
So the workflow needs to get the documents review date then convert this to date time add to the created date if greater than current date send an email.
Can anyone tell me if this is possible to do using SP designer to create the workflow? I'dd be grateful for any pointers.
Many Thanks,
Nav
SharePoint Designer makes it very simple to create these kind of workflows. Have a look at this article.
Date manipulation can be a bit of a pain so if you need a little bit more flexibility and have the skills to write a little bit of C# or VB code (Visual Studio not required) then have a look at the Workflow Power Pack. There are plenty of examples on the associated blog.
Disclaimer, I worked on the WPP so consider me biased (It works great though :-)
You can do this with secondary workflows, that starts, update dates and finish.

Sharepoint webpart for conditional formatting?

Does anyone know of a Sharepoint webpart that provides conditional formatting?
For example, if I am displaying a table, I would like to be able to change the backcolor of a row if a specific numeric cell exceeds a certain value.
Of course this could easily be done in jQuery, but for political reasons I need to find a way to do it using a webpart. 3rd party commercial solutions are certainly acceptable, and likely preferred.
Why not use the data view web part 2007, 2010 you can get from SharePoint Designer? You can set conditional formatting properties from there, or if you need more complex formatting you can edit the xsl manually.
I'm afraid I'm going to have to shamelessly self-promote. We've got a product coming out soon that does cell and row based conditional highlighting, and may or may not have many other features that I'm not allowed to express any opinion on that aren't directly relevant to this question.
Here's the pre-release post:
Pentalogic Highlighter
I wouldn't normally post such things, but your requirements are too good a match to not mention it.
Edit: I should officially make note my affiliation with the product: I helped develop it.
Edit edit: Here's the release post (since it's now actually a useful answer).

Sharepoint Designer - is there a way to calculate a date difference in a workflow?

Maybe I'm just crazy... So, with SPD I can add any time unit to a date and put that into a variable, but I can't seem to find anything that will let me calculate the difference between two dates. "Do Calculation" only lets me pick from numeric values. Am I missing something here? Seems like something which should be obvious.
Date comparison is not available "out of the box", but there are some workarounds.
Maybe this article: How to perform date calculations and construct dynamic strings in a SharePoint Designer workflow provides the answer?
Some more related information here: Modifying Date Formats in SharePoint Designer Workflows
You can use the function DATEDIF of SharePoint lists to set a column value and then use it in workflows. I am sure, this will help someone out there -
As of SharePoint 2013 you can use "Find Interval Between Dates" action.
Find Interval Between Dates
Calculates the time interval in minutes, hours, or days between two dates and stores the output in a variable.
https://msdn.microsoft.com/en-us/library/office/jj164026.aspx
String and date manipulation as well as calculations are a pain in SharePoint Designer workflows. The links Colin mentioned are good, but you may also want to consider embedding C# or vb.net code directly into your SharePoint Designer Workflow (Without the need for Visual Studio).
I wrote a component that allows you to do this and blogged about it at the following URL:
http://www.muhimbi.com/blog/2009/12/embed-c-or-vb-code-directly-in.html

Resources