Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

How is date/time field stored? Calculate correct duration between the fields..

$
0
0

Hi,

I have a 3rd party solution that stores date/time with a field called start + a field called end. Furthermore a duration field (Date/time) is present that calculates the value between start and end. The problem is (I think) that the start + end date/time fields also contains seconds in the database?

We looked in the database at it seems like a date/time field is stored in seconds also...

If I look in CRM (GUI). I ex. have a start = 11/11-2015 15:08 and end = 11/11-2015 15:18. Some times the duration field can be set to 9 minutes. I guess that's because the date/time is stored in seconds in the database also?

Is there somehow I can "convert" the date/time (Use a workflow to insert the value into a date/time start + end helper field - and insert the value from the helper field into the original start/end field - and in the process should the seconds be stripped out)


Viewing all articles
Browse latest Browse all 55831

Trending Articles