Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Date manipulations

$
0
0
Ok it seems there is no official method to do it so I use : function    dateDiffInDays(date1, date2) {     var timeDiff = Math.abs(date2.getTime() - date1.getTime());     return Math.ceil(timeDiff / (1000 * 3600 * 24)); }

Viewing all articles
Browse latest Browse all 4972

Trending Articles