In reply to Rajeev Meena.

Hi Rajeev,
Thank you for bringing it to my attention.
When I wrote this macro I was under impression that finfo(fid,'Last Modified') always returns date in the DDMMMYYYY:HH:MM:SS format as described in the Usage Note 40934. This was true for all the environments where I tested that macro and applying informat date9. produced correct date values.
As your example shows, in different OS setups finfo() function might return datetime strings in some odd formats and that would require proper parsing.
I can add that applying ANYDTDTM. informat would be more robust choice than DATE. as it extracts date values from a greater variety of datetime strings than than DATE. informat. For example, it will produce the same correct date values when ANYDTDTM. (default length = 9) applied to '21Jun2018:11:11:00' or ANYDTDTM32. applied to 'Jun 21, 2018' strings. Still, it does not cover your case :( .