Skip to content

Instantly share code, notes, and snippets.

@noromanba
Created February 19, 2012 23:19
Show Gist options
  • Save noromanba/1866433 to your computer and use it in GitHub Desktop.
Save noromanba/1866433 to your computer and use it in GitHub Desktop.
stdout yyyy.M.D format, work in standard environment
@rem ===========================================================================
@rem stdout yyyy.M.D format, work in standard environment
@rem @license CC0 1.0 (Univ. PD) https://creativecommons.org/publicdomain/zero/1.0/
@rem @author noromanba (http://flavors.me/noromanba)
@rem @homepage https://gist.github.com/1866433
@rem ===========================================================================
:: c.f. http://ptech.g.hatena.ne.jp/noromanba/20120717
@echo off
cd %~dp0
set DATE=%DATE:/=.%
set DATE=%date:.0=.%
set VERSION=%DATE%
set /p NOLINEBREAK=%VERSION%< nul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment