Is there a nicer way to display the date and time of a file? For the date, I’d like to display something lke this - 06 Jun 20007. Is there a date operator?
Q: version of file “C:\Program Files\Microsoft Office\OFFICE11\OUTLFLTR.DAT”
A: 1.4.5405.1156
Q: version of file “OUTLFLTR.DAT” of parent folder of regapp “outlook.exe”
A: 1.4.5405.1156
Q: modification time of file “OUTLFLTR.DAT” of parent folder of regapp “outlook.exe”
A: Wed, 06 Jun 2007 14:55:48 -0400
Q: modification time of file “C:\Program Files\Microsoft Office\OFFICE11\OUTLFLTR.DAT”
There aren’t any inspectors for alternate time formats that I know about but you can parse the time into whatever format works for you like this:
Q: preceding text of last " " of preceding text of first “:” of following text of first ", " of (modification time of file “C:\Program Files\Microsoft Office\OFFICE11\OUTLFLTR.DAT” as string)
A: 06 Jun 2007
Just be aware that the result is now a string so it won’t sort like a date in the BES Console, it will sort like a string.
Back in 5.1, we did not have most of the date and time inspectors that are now available, so Tyler’s method of manipulating strings was the only way. Now we have many very nice inspectors that make the relevance much easier to read, and usually more concise.