title: Convert XML response date format from YYYY-MM-DDT00:00:00 into DD/MM/YYYY using XSLT
body: <p>My <strong>XML</strong> response version "1.0" is presenting different collection dates in an array in element  and the format is 2019-04-04T00:00:00 and I want to use <strong>XSLT</strong> version "1.0" to convert the date format to 04/04/2019 (DD/MM/YYYY) in each recurring  element. I have tried looking for a few solutions or merging this in with other transformations I am doing but it makes them error so I would just like a stylesheet to convert as below and then I will transform the rest separately  </p>
  
  <p>RESPONSE XML WITH INCORRECT DATE FORMAT</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
     &lt;soap:Body&gt;
        &lt;GetFullSiteCollectionsResponse xmlns="http://webservices.whitespacews.com/"&gt;
           &lt;GetFullSiteCollectionsResult&gt;
              &lt;ErrorCode&gt;0&lt;/ErrorCode&gt;
              &lt;ErrorDescription&gt;Success&lt;/ErrorDescription&gt;
              &lt;SuccessFlag&gt;true&lt;/SuccessFlag&gt;
              &lt;SiteServices&gt;
                 &lt;ApiSiteServiceWithExtraDetails&gt;
                    &lt;SiteService&gt;                     
                       &lt;SiteServiceItemQuantity&gt;1.0000&lt;/SiteServiceItemQuantity&gt;
                       &lt;SiteServiceItemID&gt;17222&lt;/SiteServiceItemID&gt;
                       &lt;NextCollectionDate&gt;2019-04-04T00:00:00&lt;/NextCollectionDate&gt;
                    &lt;/SiteService&gt;
                    &lt;RRASSContractRounds&gt;
                       &lt;RRASSContractRound&gt;                                                   
                          &lt;RoundCodeOnly&gt;GDN2&lt;/RoundCodeOnly&gt;
                          &lt;DefaultDeviceType&gt;STREET&lt;/DefaultDeviceType&gt;
                       &lt;/RRASSContractRound&gt;
                    &lt;/RRASSContractRounds&gt;
                 &lt;/ApiSiteServiceWithExtraDetails&gt;
                 &lt;ApiSiteServiceWithExtraDetails&gt;
                    &lt;SiteService&gt;                     
                       &lt;SiteServiceItemQuantity&gt;1.0000&lt;/SiteServiceItemQuantity&gt;
                       &lt;SiteServiceItemID&gt;17220&lt;/SiteServiceItemID&gt;
                       &lt;NextCollectionDate&gt;2019-04-11T00:00:00&lt;/NextCollectionDate&gt;
                    &lt;/SiteService&gt;
                    &lt;RRASSContractRounds&gt;
                       &lt;RRASSContractRound&gt;                                                
                          &lt;RoundCodeOnly&gt;REC3&lt;/RoundCodeOnly&gt;
                          &lt;DefaultDeviceType&gt;STREET&lt;/DefaultDeviceType&gt;
                       &lt;/RRASSContractRound&gt;
                    &lt;/RRASSContractRounds&gt;
                 &lt;/ApiSiteServiceWithExtraDetails&gt;                              
              &lt;/SiteServices&gt;
           &lt;/GetFullSiteCollectionsResult&gt;
        &lt;/GetFullSiteCollectionsResponse&gt;
     &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>DESIRED OUTCOME</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
     &lt;soap:Body&gt;
        &lt;GetFullSiteCollectionsResponse xmlns="http://webservices.whitespacews.com/"&gt;
           &lt;GetFullSiteCollectionsResult&gt;
              &lt;ErrorCode&gt;0&lt;/ErrorCode&gt;
              &lt;ErrorDescription&gt;Success&lt;/ErrorDescription&gt;
              &lt;SuccessFlag&gt;true&lt;/SuccessFlag&gt;
              &lt;SiteServices&gt;
                 &lt;ApiSiteServiceWithExtraDetails&gt;
                    &lt;SiteService&gt;                     
                       &lt;SiteServiceItemQuantity&gt;1.0000&lt;/SiteServiceItemQuantity&gt;
                       &lt;SiteServiceItemID&gt;17222&lt;/SiteServiceItemID&gt;
                       &lt;NextCollectionDate&gt;04/04/2019&lt;/NextCollectionDate&gt;
                    &lt;/SiteService&gt;
                    &lt;RRASSContractRounds&gt;
                       &lt;RRASSContractRound&gt;                                
                          &lt;RoundCodeOnly&gt;GDN2&lt;/RoundCodeOnly&gt;
                          &lt;DefaultDeviceType&gt;STREET&lt;/DefaultDeviceType&gt;
                       &lt;/RRASSContractRound&gt;
                    &lt;/RRASSContractRounds&gt;
                 &lt;/ApiSiteServiceWithExtraDetails&gt;
                 &lt;ApiSiteServiceWithExtraDetails&gt;
                    &lt;SiteService&gt;                     
                       &lt;SiteServiceItemQuantity&gt;1.0000&lt;/SiteServiceItemQuantity&gt;
                       &lt;SiteServiceItemID&gt;17220&lt;/SiteServiceItemID&gt;
                       &lt;NextCollectionDate&gt;11/04/2019&lt;/NextCollectionDate&gt;
                    &lt;/SiteService&gt;
                    &lt;RRASSContractRounds&gt;
                       &lt;RRASSContractRound&gt;                                                                          
                          &lt;RoundCodeOnly&gt;REC3&lt;/RoundCodeOnly&gt;
                          &lt;DefaultDeviceType&gt;STREET&lt;/DefaultDeviceType&gt;
                       &lt;/RRASSContractRound&gt;
                    &lt;/RRASSContractRounds&gt;
                 &lt;/ApiSiteServiceWithExtraDetails&gt;                              
              &lt;/SiteServices&gt;
           &lt;/GetFullSiteCollectionsResult&gt;
        &lt;/GetFullSiteCollectionsResponse&gt;
     &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>