def _splitDate(nymd):
    """
    Split nymd into year, month, date tuple.
    """
    nymd = int(nymd)
    yy = nymd/10000
    mm = (nymd - yy*10000)/100
    dd = nymd - (10000*yy + 100*mm )

    return (yy,mm,dd)