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

Re: Time difference for SAP B1 App

$
0
0

Hi Lakshimi,

 

try this function in vb.net

 

 

ex: DateAdd(DateInterval.Hour, 12, CDate("1/1/2015 8:00 AM")) 'to add 12 hours from datetime

result: 1/1/2015 8:00 PM

 

DateDiff(DateInterval.Hour,yourstartdatetime,yourenddate) 'to check difference of two datetime

 

ex: DateDiff(DateInterval.Hour, CDate("1/1/2015 8:00 AM"), CDate("1/1/2015 2:00 PM"))

result: 6

 

 

Jim


Viewing all articles
Browse latest Browse all 8452

Trending Articles



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