First: That's not a "DOS command". DOS has nothing to do with it and is not involved at all. It is the built in
FOR command of
CMD, Microsoft's default command interpreter that is bundled with Windows NT. The
FOR command in Microsoft's
COMMAND, its command interpreter for DOS, has no such functionality, not least because DOS has no notion of file creation timestamps.
Second: As a command interpreter built-in this sort of thing depends from what command interpreter one actually uses in the first place. What you want is dead easy to achieve with JP Software's command interpreter TCC, for example:
[C:\]echo %@filedate[config.sys,c,4] %@filetime[config.sys,c,s]