Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
@[COLOR=#008080]echo[/color][COLOR=#804040][b] off[/b][/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] given is date, e.g. NN dd.mm.yyyy[/color]
[COLOR=#008080]echo[/color][COLOR=#ff00ff] current date is: "[/color][COLOR=#008080]%date%[/color][COLOR=#ff00ff]"[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] extract date from variable DATE[/color]
[COLOR=#008080]set[/color][COLOR=#008080] mydate[/color][COLOR=#804040][b]=[/b][/color][COLOR=#008080]%DATE:~[/color][COLOR=#ff00ff]3[/color][COLOR=#008080],[/color][COLOR=#ff00ff]10[/color][COLOR=#008080]%[/color]
[COLOR=#008080]echo[/color][COLOR=#008080] mydate[/color][COLOR=#804040][b]=[/b][/color][COLOR=#008080]%mydate%[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] extract date from the command DATE /T[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] for /F "tokens=[/color][COLOR=#ff00ff]2[/color][COLOR=#0000ff]" [/color][COLOR=#6a5acd]%%[/color][COLOR=#0000ff]i in ('DATE /T') do set mydate=[/color][COLOR=#6a5acd]%%[/color][COLOR=#0000ff]i[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] echo mydate=[/color][COLOR=#008080]%mydate%[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] now extract day, month, year:[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] get day[/color]
[COLOR=#008080]set[/color][COLOR=#008080] dd[/color][COLOR=#804040][b]=[/b][/color][COLOR=#008080]%mydate:~[/color][COLOR=#ff00ff]0[/color][COLOR=#008080],[/color][COLOR=#ff00ff]2[/color][COLOR=#008080]%[/color]
[COLOR=#008080]echo[/color][COLOR=#008080] dd[/color][COLOR=#804040][b]=[/b][/color][COLOR=#008080]%dd%[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] get month[/color]
[COLOR=#008080]set[/color][COLOR=#008080] mm[/color][COLOR=#804040][b]=[/b][/color][COLOR=#008080]%mydate:~[/color][COLOR=#ff00ff]3[/color][COLOR=#008080],[/color][COLOR=#ff00ff]2[/color][COLOR=#008080]%[/color]
[COLOR=#008080]echo[/color][COLOR=#008080] mm[/color][COLOR=#804040][b]=[/b][/color][COLOR=#008080]%mm%[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] get year[/color]
[COLOR=#008080]set[/color][COLOR=#008080] yyyy[/color][COLOR=#804040][b]=[/b][/color][COLOR=#008080]%mydate:~[/color][COLOR=#ff00ff]6[/color][COLOR=#008080],[/color][COLOR=#ff00ff]4[/color][COLOR=#008080]%[/color]
[COLOR=#008080]echo[/color][COLOR=#008080] yyyy[/color][COLOR=#804040][b]=[/b][/color][COLOR=#008080]%yyyy%[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] create file name[/color]
[COLOR=#008080]set[/color][COLOR=#008080] filename_part[/color][COLOR=#804040][b]=[/b][/color]_[COLOR=#008080]%yyyy%%mm%%dd%[/color]
[COLOR=#008080]echo[/color][COLOR=#008080] filename_part[/color][COLOR=#804040][b]=[/b][/color][COLOR=#008080]%filename_part%[/color]
[COLOR=#008080]rem[/color][COLOR=#0000ff] search in subdirectories for files named: *_yyyymmdd[/color]
[COLOR=#008080]dir[/color] [COLOR=#6a5acd]/s/b[/color] *[COLOR=#008080]%filename_part%[/color]
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
U:\>date
The current date is: ut 05.03.2019
Enter the new date: (dd-mm-yy)