# DateUtils Plugin

**URL:** <https://forum.servoy.com/t/dateutils-plugin/14462>\
**Category:** Classic Servoy\
**Created:** [August 10, 2011, 8:30pm UTC](https://forum.servoy.com/t/dateutils-plugin/14462 "2011-08-10T20:30:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gldni](https://avatars.discourse-cdn.com/v4/letter/g/7ea924/32.png) [@gldni](https://forum.servoy.com/u/gldni)\
**Post date:** [August 10, 2011, 8:30pm UTC](https://forum.servoy.com/t/dateutils-plugin/14462/1 "2011-08-10T20:30:05Z")

</div>

I am trying to rid my solution of warnings/errors. I’m getting warnings using the duration method in the DateUtils plugin. I thought it was just me, but even the sample has warnings:

```auto
var vStart = new Date();
var vEnd = plugins.DateUtils.addDays(vStart, 20);
vDuration = plugins.DateUtils.Duration(vStart, vEnd); //Warning: The method Duration() in the type Plugin<DateUtils> is not applicable for the arguments (Date,Date)

```

I’m working on a timeclock application and need to get the total hours worked.

Thanks in advance for the help!

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [August 11, 2011, 8:08am UTC](https://forum.servoy.com/t/dateutils-plugin/14462/2 "2011-08-11T08:08:20Z")

</div>

You can safely ignore this warning. This “issue” will be addressed with the next release.
