Working to issue #1963. Successfully ported asDate() and asDatetime() methods to functions
Merge pull request #1964 from scenari/develop

#1958 OMemoryWatchDog issue : WeakHashMap used for listeners