How can I truncate space in the from the DATE?I am using the following:FOR /f "tokens=1 delims=/" %%a in (dummy.txt) do ( SET mon=%date:~4,2% SET day=%date:~7,2% SET yyy=%date:~10,4% ) SET DateTime=%yyy%%mon%%day%and its SHOWING me this2005 0713How can I REMOVE space space between 05 and 07SET mon=%date:~4,2% SET day=%date:~7,2% SET yyy=%date:~10,4% 2%???
Your experience on this site will be improved by allowing cookies. Read Cookie Policy