How can I calculate the days between 1 Jan 2010 and (for example) 3 Feb 2010?
You can find the difference by converting the date in seconds and take time interval since 1970 for this and then you can find the difference between two dates.