<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: EXSLT or date-time functions (Thread)</title><description> In my custom report I need to calculate number of days between two dates. How can I implement it?  Are any EXSLT libraries installed?  like:  http://exslt.org/date/functions/difference/date.difference.html  or fn:day-from-dateTime( datetime ) ?  Otherwise it looks like it is rather complicated...  Could somebody write several examples how to deal with it? </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/reports/2357.aspx</link><item><guid isPermaLink="false">threadId=2357</guid><author>Ilia Poliakov (ilya.polyakov@edetek.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">xslt</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> exslt</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> datatime</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> functions</category><title>EXSLT or date-time functions</title><description> In my custom report I need to calculate number of days between two dates. How can I implement it?  Are any EXSLT libraries installed?  like:  http://exslt.org/date/functions/difference/date.difference.html  or fn:day-from-dateTime( datetime ) ?  Otherwise it looks like it is rather complicated...  Could somebody write several examples how to deal with it? </description><pubDate>Mon, 15 Feb 2021 19:44:30 -0500</pubDate><a10:updated>2024-08-20T00:02:01-04:00</a10:updated><link>/Support/Forum/spirateam/reports/2357.aspx</link></item><item><guid isPermaLink="false">messageId=3923</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> Hi Ilya,  Unfortunately the Microsoft libraries used by SpiraTeam are only XSLT 1.0 compatible and </title><description> Hi Ilya,  Unfortunately the Microsoft libraries used by SpiraTeam are only XSLT 1.0 compatible and you cannot include third party libraries. However there is the following solution from:  https://stackoverflow.com/questions/38604414/finding-the-difference-between-two-datetimes-in-xslt     
 
 

 
     
         
             
         
      
    
     
         
             
         
     
    
     
     
     
     
     
     
     
    
     
         
         
             
              days,  
             
              hours,  
             
              minutes and  
             
              seconds 
         
     
 

 
     

     
     

     
     

     
     
     

     
     
     

     
     
     

     
     
         
     

     
  

 
   Regards  David </description><pubDate>Mon, 15 Feb 2021 22:21:54 -0500</pubDate><a10:updated>2021-02-15T22:21:54-05:00</a10:updated><link>/Support/Forum/spirateam/reports/2357.aspx#reply3923</link></item></channel></rss>