Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Days between


From   Damian Finlayson <[email protected]>
To   [email protected]
Subject   st: Days between
Date   Wed, 9 Jan 2013 14:20:30 +0000

Hi,

I have two date formats which I have imported from Excel.  The first
is a in dd/mm/yyyy hh:mm format (e.g. 22/04/2011 12:08).  The second
is dd/mm/yy (e.g. 22/08/2012). Both dates are currently stored as
float and formatted in %tc.

I would like to calculate the days between these two dates.  I was
able to when both dates were in dd/mm/yy.  However, with the inclusion
of hh:mm I am no longer able to.

How would I calculate the days between?

Thank-you and kind regards,

Damian
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index