how can i calculate the number of days by taking the date out of this format for example 2007-01-31
and calculate the days past from say 2007-01-13, or whatever date?