1.

Solve : truncate date?

Answer»

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 this
2005 0713

How can I REMOVE space space between 05 and 07SET mon=%date:~4,2%
SET day=%date:~7,2%
SET yyy=%date:~10,4%


2%???



Discussion

No Comment Found