Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 974

Re: Calculate Difference of two fields in tickets

$
0
0

hello Saurabh,

 

 

 

try

 

this.date1 = Date.ParseFromString("20100215"); this.date2 = Date.ParseFromString("20100218"); this.result = this.date1.Delta(this.date2);

 

Result: Duration value P3D

 

 

 

then,

 

this.duration = Duration.ParseFromString("P1Y14D"); this.result = this.duration.ConvertToDays(); Result: Integer value 379

 

 

 

Regards,

 

Chandan


Viewing all articles
Browse latest Browse all 974

Trending Articles



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