Linked Questions

1
vote
2answers
9k views

Pull Data from SharePoint List using JS and converting it into HTML in the following format?

I was wondering how to use JS in order to pull Data from a SP2013 list convert it into HTML using the following structure below. For example: The List fields are as follows: Title Date Image Body ...
2
votes
2answers
5k views

Sharepoint 2013 - custom display form - time/date not formatted correctly

I have an issue on my display form with formatting. I have set the language and region correctly - and chosen time and date in a friendly format. When I enter the time and date it all looks fine - but ...
3
votes
4answers
754 views

JavaScript - Rearrange String order?

var date = $(this).attr("ows_Date"); My current code displays a string output: 2017-01-02 Is there a Javascript code where I can move the first 4 digit to the back? How do i turn it into 01-02-2017? ...
0
votes
1answer
3k views

Looking for count down clock in CEWP using html/jquery [duplicate]

I am looking to insert a count down clock in content editor web part using html / jQuery. Did any one ever do this? I am unable to figure out how to start as am not a pro in scripting.
1
vote
0answers
4k views

toLocaleDateString() formatting

I am using the above method to format my date, but for some reason it is formatting the date using the English US format: MM/dd/YYYY even though the locale for my site is English United Kingdom. I ...
2
votes
2answers
2k views

Format Date using CSR (dd.MM.yyyy)

I´m using SP2013 and i have a Shift Plan which colors the row from TODAY in yellow. var today = new Date(); // zero out the time portion so we will only compare days today.setHours(...
4
votes
1answer
850 views

LastModifiedTime managed property inside my Search Result web part will not get updated when editing word document properties

I am working on an on-premises farm 2013. and i have added a Search Result web part, which should show documents from multiple documents libraries. now one of the properties i am showing inside the ...
0
votes
3answers
1k views

Using Moment to format a date from a Sharepoint list

Afternoon I'm new to using Moment and need to format a date from SharePoint in JavaScript. The variable is LifeCycleStart and I don't know the right way to format it and drop in Moment. Here's what ...
3
votes
2answers
706 views

Color code due date field

I have modified the following script to display my ReminderDate field in red if the date is past and also the feedback field is false. Before implementing this and because I am a novice in jslink/...
1
vote
2answers
706 views

RestApi Query for sharepoint

Hi I need to get all user name who is celebrating birthday today based on the value in SPS-Birthday field using Rest API? How to achieve this?
1
vote
3answers
898 views

How can I convert the format ctx.CurrentItem.Created

I am using SP2013 on-premise. I have applied client side rendering to convert the Item created datetime to specific format. The problem is "ctx.CurrentItem.Created" always return a string format as ...
0
votes
3answers
839 views

Format date in SharePoint 2013

I have a date field in SharePoint 2013 list. Using SP Service am retrieving the date field value. The value is retrieved as 2017-5-24 00:00:00. I want to format the date as May 5 2017. Can this be ...
1
vote
1answer
918 views

REST filter today at midnight or ignore time portion

I may be asking the wrong question here. In SharePoint I normally filter the list with Start Date <= Today and End Date >= Today to get a list of staff that is out today. Both dates are in Date/...
1
vote
1answer
1k views

SharePoint Conditional Formatting Date Column

I've been trying to create a Conditional Color column for dates that are expired. The expired dates should be red and the dates that are not should be clear. I tried to use the code from http://www....
1
vote
1answer
607 views

SharePoint list conditional formatting - US versus UK dates

I've tried my best not to ask for help, but I'm stuck, even after I learned a bit of JS, MomentJS and Client Side Rendering on SP. The code below returns undefined in date column. If you know why, ...

15 30 50 per page