# date function changes in 2.2?

**URL:** <https://forum.servoy.com/t/date-function-changes-in-2-2/3399>\
**Category:** Classic Servoy\
**Created:** [January 7, 2005, 5:03pm UTC](https://forum.servoy.com/t/date-function-changes-in-2-2/3399 "2005-01-07T17:03:40Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [April 20, 2005, 11:38am UTC](https://forum.servoy.com/t/date-function-changes-in-2-2/3399/21 "2005-04-20T11:38:08Z")

</div>

A variable and a foundset has nothing todo with each other, you can duplicate a foundset, by calling:  
var copyFS = controller.duplicateFoundset()

If you want to make a copy from a date object use:  
var newDate = new Date(otherDate)

[Previous page](https://forum.servoy.com/t/date-function-changes-in-2-2/3399.md?page=1)
