• Skip to primary navigation
  • Skip to content
  • Skip to footer
Ming's Blog
  • Posts
  • Categories
  • Tags
  • About

    Batch programming getting the date

    less than 1 minute read

    How to get the date in bat? Windows XP.

    for /f "tokens=1-4 delims=/ " %%a in ('date /t') do (set year=%%a& set month=%%b& set day=%%c& set weekday=%%d)

    SET date1=%year%%month%%day%
    echo %date1%

    Tags: programming

    Updated: March 24, 2010

    Twitter Facebook LinkedIn
    Previous Next

    Comments

    You May Also Enjoy

    Spring Boot Different ways to start an application

    less than 1 minute read

    Spring Boot - Different ways to start an application

    Tracing PWA new content refresh event

    less than 1 minute read

    I was using this wrapper around PWA(Progress Web Apps) APIs register-service-worker and was wondering how does it detect when there is a new build and the pa...

    Setup gitlab ci unit and integration

    4 minute read

    How to setup xcode and macos

    less than 1 minute read

    • Twitter
    • GitHub
    • Feed
    © 2023 Ming's Blog. Powered by Jekyll & Minimal Mistakes.