Tag Info

New answers tagged

1

You can incorporate that same logic inside a workflow, but it will not be in that format. The way it will look in a SharePoint Designer workflow will use the "Find interval between two Dates" action: Find days between CurrentItem:Created and Today (Output to Variable:DifferenceVariableinDays)


0

This works: =AND(Date >= DATE(2015, 3, 1), Date <= DATE(2016, 6, 1)) I don't know what went wrong before. We probably were confused about False triggering the error message.


1

SharePoint 2010 REST Interface expects the following format for the Date column: /_vti_bin/listdata.svc/ListName?$filter=Modified gt datetime'YYYY-MM-DDT12:00:00Z' JavaScript example var listTitle = "Requests"; var minDate = getMinDate(); var endpointUrl = "/_vti_bin/listdata.svc/" + listTitle + "?$filter=Modified gt datetime'" + minDate.toISOString() + ...


-1

The datetime value should be in following format $filter=ExpectedDelivery gt DateTime'2012-05-29T09:13:28'


3

When you get the list item date value you can put it inside of a Date object, which will handle the UTC conversion for you; then you have some options on formatting: Option 1: The easiest from SharePoint is to use the Date.format() function provided from the ASP.NET Ajax Date Type Extensions: var myDate = new Date(oListItem.get_item("EventStart")); var ...


-1

Out of the box I am not sure if there is any Date format methods are available. You can use something like var m_names = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); var d = new Date(); var curr_date = d.getDate(); var curr_month = d.getMonth(); var curr_year = ...


0

I also faced a similar issue when I wanted to filter by the Modified field. The following method i developed worked for me: If you are using REST API the datetime literal is used as, e.g. datetime'2013-03-12T12:01:38Z' or datetime'2013-03-12′. Therefore I needed the date in the format yyyy-mm-dd Here is the Code: var d = new Date(); var date ...


4

Date and time OData functions: day() month() year() hour() minute() second() does not seem to work with SharePoint 2013 REST Service Error: The query is not valid But you could consider the following approaches. Option 1 Utilize SharePoint 2010 REST endpoint: /_vti_bin/listdata.svc/ListName?$filter=month(<DateColumn>) eq <MonthNumber> ...



Top 50 recent answers are included