How to get current datetime on windows command line, in a suitable format for using in a filename?



How to get current datetime on windows command line, in a suitable format for using in a filename?..

Answer / Durgesh Joshi

You can use the `date /t` command to get the current date and time in the format: `YYYYMMDD_HHMMSS`.nnFor example:n```cmdndate /t > datetime.txtn```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Windows General Interview Questions

Is windows 7 better than windows 8?

1 Answers  


Can I stop a windows update in progress?

1 Answers  


How do I force a windows update to stop?

1 Answers  


How do I update my windows operating system?

1 Answers  


Does windows 7 have system restore?

1 Answers  


Do you get microsoft word with windows 10?

1 Answers  


What is the windows of a computer?

1 Answers  


What is windows host process rundll32 windows 10?

1 Answers  


Explain the difference between dual core and core 2duo processor?

1 Answers  


If Account lockout or password reset has been done, what is the replication time between domain controllers?

3 Answers   HCL, Wipro,


How do I turn off windows troubleshooting?

1 Answers  


Can you run android on windows tablet?

1 Answers  


Categories