Added validity check to DateToDay and Made IntToAscii function extern