Code: Select all
MyDateTime = GetAppInfo(aiLeftDispDateTime);
strMyYear = formatdate("yy",MyDateTime);
strMyMonth = formatdate("MM",MyDateTime);
strMyDay = formatdate("dd",MyDateTime);
strMyDate = "1" + strMyYear + strMyMonth + strMyDay;
LeftSideOfScreenDate = strToNum(strMyDate);
Does anyone know if there an easier way (and preferably a faster way)? I was trying to avoid writing one of those century routines like the Julian routine since I needed it fast. Such code may run faster than what I wrote on the other hand.
If not, I guess I should create a function called A_DateTime2ELDate and put it in User Contributed.