CAMl Query -CSOM - Display Modified date of list Item in a required format

Hi All,
I want to display last modified date of a List Item.
I am getting the value in this format : 
Tue Feb 25 23:06:57 PST 2014
How ever, I want to display it as : Tuesday 25th February 2014
Please suggest how to achieve this.
Any informative articles, links w.r.t building such queries in CSOM (jQuery) is welcome.
Thanks.

I have the query : 
function ReadListItem() {
            siteUrl = "my site Url";
            var listTitle = "NewsList";
            //Get the current client context
            var context = new SP.ClientContext(siteUrl);
            var newsList = context.get_web().get_lists().getByTitle(listTitle);
            var camlQuery = new SP.CamlQuery();         
            camlQuery.set_viewXml('<View><Query><OrderBy><FieldRef Name=\'Modified\' Ascending="FALSE"/></OrderBy><RowLimit>1</RowLimit></Query></View>";')
            this.listItems = newsList.getItems(camlQuery);
            context.load(listItems);
            context.executeQueryAsync(ReadListItemSucceeded, ReadListItemFailed);
        function ReadListItemSucceeded(sender, args) {
            var itemsString = '';
            var enumerator = listItems.getEnumerator();
            while (enumerator.moveNext()) {
                var listItem = enumerator.get_current();
                itemsString += 'Modified On: ' + listItem.get_item('Modified');
            $("#P1").append(itemsString);
I am able to get the Modified Date using the query
But I need it in a specific format like : Tuesday 25th February 2014
Please suggest

Similar Messages

  • Displaying Multiple XML Data on List Item List

    Hi there..
    Is it possible to display multiple XML Data on List Item List. I mean like the example below.
    and how to programatically load image that depends on the XML data value (0=down arrow, 1=up arrow) and also how to refresh data every 1 second.
    Thank you very much...

    Hi Ann,
    Write a Forms procedure and in that open a cursor fetching all data you want to show in the list element and populate the list within the loop using Add-List-Element built-in. Call this procedure in When-New-Form-Instance trigger. Whenver form will be opened the your list element will be populated automatically.
    Hope that helps you.

  • Reading text file and display in the selectOnechoice list item In ADF.

    Hi,
    I have a requirement to read the text field which have list of strings and that string display in the SelectOneChoice List item component on page load.
    I am using Jdeveloper 11.1.2.3 version.
    Any suggestion will highly appreciated..
    Thanks in advance.
    Regards

    Hi,
    Google will produce you with hints on how to read content of a file from Java (ideally the file uses some delimiter). Then in a managed bean, you read the file and save its content in a list of SelectItem. So your managed bean should have the following property and setter/getter pairs
    ArrayList<SelectItem> listFromFile = new ArrayList<SelectItem>();
    public void setListFromFile(ArrayList l){ //you don't need this }
    public ArrayList<SelectItem> getListFromFile(){
       //read file content and iterate over the file list entries
      for(i=0, i < fileContent.length, ++i){
         SelectItem si = new SelectItem();
         si.setValue(... the value to update the list of value with ...);
         si.setLabel("... the label to show in the list ...");
         listFromFile.add(si);
      return listFromFile;
    }The af:selectOneChoice component should look as follows
    <af:selectOneChoice id=".." value="...attribute to update with selection ..." ...>
       <f:selectItems value="#{managedBean.listFromFile}"/>
    </af:selectOneChoice>Frank

  • CAML query to get itemcount from sharepoint list based on Month/Year

    Hi,
     I have a SharePoint list with date field. Now I wan't to get item count for each month in Fiscal Year using SP Services. Hence, need a CAML query to get item count . Any suggestions will be appreciated.
    Thanks in Advance.

    When you have your month, you'll need to calculate the first day and last day of the month and convert them to the ISO using to ISOString.
    startDate.toISOString();
    endDate.toISOString();
    function searchList(startDate, endDate) {
        var nURL = "/_vti_bin/lists.asmx";
        var soapEnv = "<?xml version=\"1.0\" encoding=\"utf-8\"?> \
                                 <soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
                                  xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
                                  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">
                                  <soap:Body> \
                                  <GetListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\">
                                  <listName>{YourList}</listName> \
                                  <viewFields></viewFields> \
                                  <query><Query><Where><And><Geq><FieldRef Name='DateField'
    /><Value Type='DateTime'>" + startDate +"</Value></Geq><Leq><FieldRef Name='DateField'><Value Type='Datetime'>"+endDate+"</Leq></And></Where></Query></query> \
                                  <queryOptions><QueryOptions><ViewAttributes Scope='Recursive'/></QueryOptions></queryOptions>
                                  </GetListItems> \
                                      </soap:Body> \
                                  </soap:Envelope>";
        $.ajax({
            url: nURL,
            beforeSend: function(xhr) {
                xhr.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/sharepoint/soap/GetListItems");
            type: "POST",
            dataType: "xml",
            data: soapEnv,
            complete: processResults,
            contentType: "text/xml; charset=utf-8"
    function processResults(xData, status)
      var i;
       result = $(xData.responseText).find("z\\:row, row");
        if (result == undefined) {
            result = $(xData.responseXML).find("z\\:row, row");
        $(result).each(function(i, data) {
        //Magic   
          i++; 
        return i;
    Brandon James SharePoint Developer/Administrator

  • Query not displaying updated data for planning

    Hi Experts!
    I've created a revaluation function in IP and tested it in the modeler, it's working fine. I have an issue when running the sequence in WAD, as it is not displaying the modified data. The message says that the records were modified, but those changes aren't being displayed in the query. The query being used isn't input ready, it just takes data from the cube and revaluates them.
    I have already tried adding a refresh command in WAD, but I've found out it doesn't fit this purpose. Am I missing a configuration so it can read the delta buffer? or must I necessarily save the plan data for it to be displayed? Any ideas?
    Thanks in advance for your help,
    Al

    Hi,
    you are on the save side if you use an input-ready query and a button representing the revaluation function in the Web Application Designer (WAD) . Of course the function has to change data via an aggregation level A on a real-time cube C that is also contained in the InfoProvider P used to create the input-ready query. In the most straightforward case A = P.
    Input-ready queries always know about the most-recent data, i.e. data in all green + yellow requests and the data in the deltabuffers.
    But even a 'reporting' query e.g. on a real-time InfoCube C and the revaluation planning function on an aggregation level A on C should know about the most-recent data as defined above.
    You can check the 'Requeststatus' used in the 'reporting' query. It should be 'Real-time InfoCubes up to current version'. This setting can be found - depending on the release - in transaction RSRT or the Query Designer.
    You should not forget to do some simple checks: Maybe the function has changed data that are not contained in the filter of the query.
    Regards,
    Gregor

  • List View : Opening folder in folder changes modified date in list view

    Since my office upgraded me to 10.5.4, when I flip open a folder in List View, then flip open a sub-folder, the modified date in the original folder changes to now. Opening subsequent folders again changes the modified date of the folder above it. I do not remember this happening in Tiger, and since part of my job involves finding and archiving old files, this is driving me crazy. Can I stop it?
    Jeff Work

    That's interesting, and probably why the original poster had the same issue, but it does not work that way for me with Leopard 10.5.5.
    In list view, the .DS_Store does not get updated when I flip down the folder. The .DS_Store file only gets updated if I open the folder in icon view. That makes sense because the .DS_Store file stores the relative position of the icons in the window.
    However, when I go back to list view, even though the .DS_Store file is updated to the current data and time, the Date Modified of the parent folder does not change.
    This different may be caused by some setting you are using in Finder that most people do not use, or maybe because of some other Mac OS X feature such as File Vault (which I do not use), or maybe some third party software that modifies Finder functionality. I don't know...

  • ECT List View Web Part displaying incorrect data when View Item

    I have a External Content Type which pulls data from a stored procedure. The stored procedure has 1 parameter - the users logon id. The data retrieved is a list of meetings with start date time, end date time, location, subject, etc. From this ECT there
    is an External List which displays all data correctly.
    There is 2 pages within the site and its subsites that have list view web parts which display a subset of the info from the external list. When the user clicks a specific meeting to display the complete info on the meeting, the wrong information is displayed,
    it always displays the info for the 1st meeting in the list. So, I displayed the BDC Identity field on the list and this field is identical for all the rows since the key for the ECT is the username and hence not unique.
    I've spent all day trying to finding a way to resolve this and have come up empty. I've tried to find a way to make the BDC Identity field to be unique, using Business Data View web part, Data View web part, and nothing.
    The user needs to be able to click the My Meetings url header on the above pages to see a full list of their meetings so I need the external list. Any ideas how to make the BDC Identity field unique or how to get the View Item on the List View web part to
    work correctly?

    Sorry, I do not understand what you mean.
    I resolved the non unique BDC Identity problem by simply adding the row # to the Username in the stored procedure so the BDC Identity fields on the list records are now unique (although they're really long ie. __bk44003500070057003700560027000200140037003700f600360096001600470056003300,
    __bk44003500070057003700560027000200140037003700f600360096001600470056004300 etc). Not sure how it generates the BDC Identity?
    I still see the same behaviour when you select a meeting to display the details. It always displays the 1st record in the list.
    I added code to the DispForm to display the ID when the page loads and the BDC Identity from the record and verfied that they do match.
    I can add another parameter to the stored procedure and just return the row # in that field. What do you mean by make the identifire as Identity in operations?

  • Query not displaying correct data

    hi all
    my query is not displaying correct data.
    in data target secondary sales is showing 1.800 value but in query it is showing
    2.00.my requirement is my query shuld show 1.800 value. i also tried to change decimal points but not changes has happend.plz let me knw what is the problem
    thanks in advance
    shalini gupta

    With which u r reconciling the data.
    With R3 or Cube.
    I think check ur key figure, have u taken the key figure 'with TAX' one or with out tax one??
    Regards,
    Manoj.

  • ECMA/CSOM script to update multiple list items

     i am trying update multiple list items using CSOM/ECMA script but it updates only first record. can help out .how to update multiple list item records 
    Note(sharepoint hosted APP) only client side coding solution 
    function updateListItems() {
    var itemArray = [];
    var clientContext = SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('TestList');
    for(var i = 1; i<= 5; i++){
    var oListItem = oList.getItemById(i);
    oListItem.set_item('Title', 'My Updated Item!' + i);
    oListItem.update();
    itemArray[i] = oListItem;
    clientContext.load(itemArray[i]);
    clientContext.executeQueryAsync(onQuerySucceeded, onQueryFailed);
    function onQuerySucceeded() {
    alert('Items Updated');
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    updateListItems();

    Have a look at the following link for your reference
    https://social.msdn.microsoft.com/Forums/office/en-US/fc91b7b5-6300-4302-af93-4fc697131ec5/client-object-model-update-multiple-list-items?forum=sharepointdevelopment
    You can modify CAML query to fetch rows that you want to fetch.
    Geetanjali Arora | My blogs |

  • How to get the duplicate rows in dynamically generate data table [list items collection] and send emails in sharepoint2010

    Hi,
    i have share point list like  below
    ID   name AdminEmail Useremail   URl   DueDate   UploadSatus
    1    ppp     [email protected]  [email protected]    url  some date    uploaded
    2    yyy       [email protected]   [email protected]   url somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   emp
    AdminEmail and UserEmail  are lookup column
    i using query the list using caml query
    inside of foreach i am checking  two condition like below
    one is upload status in not empty
    i need to send to mail to admin user  this part i have done my adding all list items which have datatable apply group by working fine
    in send condition i am checking difference between DueDate And current date value
    if the value is =1 or -1
    if the value is i
    thank
    i am getting the
    table like below
    ID   name AdminEmail Useremail   URl   DueDate   Upload
    2    yyy       [email protected]   [email protected]   url   somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    my issue is here  how can i get the dynamic table rows which are same values of AdminEmail and user email  one set and distintict rows are another set
     sets which are same emails are same
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    set 2
    2    yyy       [email protected]   [email protected]   url   somedate    empty
     how can i get this separate this can any one tell i need to send mail only one time to user [adim and user] .planing to aviod duplicate mail
    Srinivas

    your case better to use the two data tables to store the data
    DataTable dt = list.Items.GetDataTable();
    foreach (DataRow row in dt.Rows)

  • How to filter data by list item

    hi all,
    I create list item on block BLK1 ,
    name :emp_name
    item type: list item
    elements in list : list_elements : (null) list_item : (null)     
    data type : Char
    maximum length : 200
    and create PROCEDURE :
    PROCEDURE POPULATE_LIST_BY_QUERY(P_LIST_NAME VARCHAR2,P_QUERY VARCHAR2) IS
       RG_NAME  VARCHAR2(30) := 'RG_CODE_DESC' ;
       RG_ID    RecordGroup;
       errcode  NUMBER;
       LIST_ID  ITEM;
    BEGIN
         RG_ID := FIND_GROUP(RG_NAME);
         IF NOT ID_NULL (RG_ID)
            THEN DELETE_GROUP (RG_ID) ;
         END IF;
         RG_ID   := Create_Group_From_Query (RG_NAME, P_QUERY) ; 
         errcode := Populate_Group (RG_ID) ;  
         LIST_ID := FIND_ITEM (P_LIST_NAME) ;
         POPULATE_LIST (LIST_ID,RG_ID) ;
    END;and wrote in trigger WHEN_NEW_FORM_INSTANCE:
      POPULATE_LIST_BY_QUERY('BLK1.emp_name', 'SELECT emp_name,emp_id FROM employees');
    create table employees
    (emp_no number(10) primary key,
    emp_name varchar2(200))
    Insert into EMPLOYEES
       (EMP_NO, EMP_NAME)
    Values
       (1, 'hhh uuo');
    Insert into EMPLOYEES
       (EMP_NO, EMP_NAME)
    Values
       (2, 'hh ppp');
    Insert into EMPLOYEES
       (EMP_NO, EMP_NAME)
    Values
       (3, 'ph');
    Insert into EMPLOYEES
       (EMP_NO, EMP_NAME)
    Values
       (4, 'uuuuu');
    COMMIT;when Run my form list item give me all data, no problem ,ok
    My question is that can i want to filter data when write anythnig data is found im my list or part of data,
    show data only by my filter,
    for example:
    I wrote in my list : hh
    show data in list:
    hhh uuo
    hh ppp
    I wrote in my list : h
    show data in list:
    hhh uuo
    hh ppp
    ph
    I wrote in my list : uu
    show data in list:
    uuuuu
    if not wrote anything fetch me all data,
    Thanks a lot

    Hi,
    You can try,
    POPULATE_LIST_BY_QUERY('BLK1.EMP_NAME', 'SELECT EMP_NAME, EMP_ID FROM EMPLOYEES WHERE EMP_NAME LIKE ''' || <your_search_variable> || '%''');Hope this helps.
    Regards,
    Manu.

  • SQL query to display the price of an ITEM

    Hi to all:
    Can some one guide me which tables I have to use to display the price of specific item?
    Ali

    Hi,
    If you want to find out the price for that item which is included in the price list, then use the following tables.
    qp_list_headers - Price List Headers details
    qp_list_lines - price list line details ( link PRODUCT_ATTR_VALUE with the inventory_item_id of the item)
    Regards,
    Jyoti

  • Query to Display Settlement Receivers for Maintenance Items

    I am looking for a way to get a query/list display that shows me our maintenance plans, maintenance items and the settlement receiver.  Looked in all the obvious spots and the actual receiver is not available.  In the maintenance plan you can get the field that tells you there is a settlement rule but not the actual receiver.  In the order list display you cannot get the information either.
    Has anyone had this requirement and if so, what may have been the solution.

    Greetings Linda,
    The Settlement Rules are saved in the tables COBRA & COBRB. Get your Maintenance Plan Object Number from table MPOS and join on the field OBJNR using an SAP Query.
    (SQVI or SQ00)
    Also, note that these will be copied to the created Orders and the actual settlement only happens for the Orders. The settlement rule of the Maintenance Item is only a template, no actuals are involved.

  • How to remove "Created by" and "Last Modified" on Edit list item

    Hi, 
    I have a custom list, after adding items when I try to edit, I can see "Created by" and "Last Modified"  at the bottom left(You can see in pic below). I need to remove it, How can I achieve this? This is overlapping with some of
    my fields when I try to hide some fields
    Any help would be appreciated. Thanks in advance
    Praveen Teja

    Hey,
    The other option is you can remove it using jquery code. You need to do is put below code in CEWP on your list from. 
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function () {
    $("td[id='onetidinfoblock1']").remove();
    $("td[id='onetidinfoblock2']").remove();
    </script>
    Thanks.Please mark it as an answer if it helps.

  • Query create on Master Data for the items that has not shipped

    Hi all,
    Is it possible to report/query on Items on Master Data that has not inoviced or has not been shipped?
    Running query on Sales overview cube will not bring the right data since that cube only captures the items that was invoiced.  Please help!
    Thanks in advance,
    BW
    P:S  Points will be assigned.

    Hi,
    if u are using BI-7 for scenarios like this they have designed info set to include 2 cubes,
    as info set brings intersection data u can opt for infoset, build info set on cube and ur master data then u will get the result this will be better as per performance issue.
    if u are using BW then if data flow is from ODS -> CUBE then u can build infoset on ODS and master data it will be good.
    if u want replacement path then u have to use RRI that is report to report interface. build char variable on ur info object in cube query so that it will brings orders which are shipped.
    then build another char variable in master data query and processing type as replacement path to char var built on first query. and exclude those values which first var brings.
    assign points if it helps,
    thanks,
    pavan.

Maybe you are looking for

  • ITunes 6.0.1 Quits on Vdeo Download

    Starting wit iTunes 6.0, and still after downloading the 6.0.1 software upgrade, I can not download (or preview) videos/shows on my Dual G5 PowerMac. (Yes, QT 7.0.3 is installed) Videos appear to download fine, but at the moment that it is about to c

  • Report on delivery data in item level for list of po

    Dear all          How to take Report on delivery data in item level for list of po regards M.Chandra mohan

  • Mapping text item

    hi i have a form component text item in oracle forms6i. so i created a <af:inputText> in my jsp page. and i gave the width and height same as the value of form's component text item in pixels. The problem is that even though i gave the same value for

  • Unable to renew the same Subscription

    I subscribed for 400 mins India subscription and it got expired.  Now I am trying to renew it, but it is not listed in the available subsriptions.  Please let me know how can I renew the 400 mins inida subscription.  Thanks.

  • Goods movement list not showing EAN in Order Unit..!

    Hi Guys,                I have an issue with goods movment list (tcode MB26). good movement list not showing EAN in Order Unit..! EAN No. and Storage Bin is maintained in Material Master but its not showing up Goods Movement list. Please find the scr