How to add current date while creating a folder in nant? I have <mkdir dir="${Test.Dir}" /> and as a result I need to get the folder created with name "TestDir-04-04-2022".
Any advise? Thanks.
and as a result I need to get the folder created with name" /> and as a result I need to get the folder created with name" /> and as a result I need to get the folder created with name"/>
How to add current date while creating a folder in nant? I have <mkdir dir="${Test.Dir}" /> and as a result I need to get the folder created with name "TestDir-04-04-2022".
Any advise? Thanks.
In my case I only found solution to use embeded C# code with custom function. Possible solutions:
Variant 1:
Variant 2:
Note: datetime::now - is standard nant function.
Output: