Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Invalid date format for ‘Created’ field in the getVersions web service Response.

$
0
0

Hi all,
I am trying to get all versions for selected document by calling getVersions method Versions.asmxweb service, but getting ‘Created’ date attribute value is in the format "29-05-2012 12:01"
but I am expecting either one of the following date formats.

 1.      yyyy-MM-dd HH:mm:ss  or  yyyy-MM-ddTHH:mm:ssz
 2.      MM/dd/yyyy HH:mm a   (a means AM/PM)
 3.      MM/dd/yyyy
 4.      yyyyMMdd HH:mm:ss

where do I need to change?
what are all the formate will be support by SharePoint?


please find attached response xml of getVersions call.

<results xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <list id="{6A6F6CD1-2E9C-44CC-B1F5-56G7JB5C8778}"/>
    <versioning enabled="1"/>
    <settings url="http://hbngjfgj47s20/reg/_layouts/LstSetng.aspx?List={7S6F6CD1-2E9C-44CC-B1F5-KO9J8Y7Y6H78}"/>
    <result version="@0.3" url="http://vmesxsrv47s20/register/Shared Documents/Parent/child/my_doc" created="29-05-2012 12:01" createdRaw="2014-12-02T12:46:02Z" createdBy="my_dom\agi_sharepoint" createdByName="AGI_Sharepoint" size="288" comments=""/>
    <result version="0.1" url="http://hbngjfgj47s20/register/_vti_history/1/Shared Documents/Parent/child/my_doc" created="29-05-2012 10:01" createdRaw="2014-12-02T10:55:18Z" createdBy="my_dom\my_sharepoint" createdByName="my_sharepoint" size="288" comments=""/>
    <result version="0.2" url="http://hbngjfgj47s20/register/_vti_history/2/Shared Documents/Parent/child/my_doc.txt" created="29-05-2012 11:01" createdRaw="2014-12-02T10:59:25Z" createdBy="my_dom\my_sharepoint" createdByName="my_sharepoint" size="288" comments=""/>
</results>

Kindly help me on this.



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>