Hello everyone,
I am currently setting up scripts to run in RUMBA 9.5 and I need to insert the date in the format I need that will insert a 0 or single digit months and days. Example 05/05/1999. I can get it to input the current date however, it will mess up my current scripts if the days go to single digit, or the months go to double digit thus why I need it to return a 0.
So as the subject says I need to Insert date with Full date MM/DD/YYYY that will add 0 for single digit months and days. Example 05/05/1999.
I am using the following different commands to insert different dates. Would it be still similar to this kind of script or do I need to add an IF statement?
Sub Main
EMConnect "A"
ThisDay = Day(Now)
ThisYear = Year(Now)
ThisMonth= Month(Now)
ThisDate = date
EMWriteScreen ThisDate , 20, 8
EMWriteScreen ThisMonth, 20, 7
EMWriteScreen ThisDay, 20, 9
EMWriteScreen ThisYear, 20, 12
End Sub
Thank you in advance.
#Rumba






