Changing Date format in a Batch file

Solved/Closed
Mr.Peepers - 9 Mar 2010 à 19:51
Richard.Williams Posts 25 Registration date Saturday 7 November 2009 Status Member Last seen 18 July 2012 - 11 Mar 2010 à 09:14
Hello,
I'm creating a simple menu and date is a choice but I need to have the outcome of DATE in my batch to read something like this: Monday 8 March 2010, instead of the standard format. Any help or suggestion would be greatly appreciated.
Related:

1 response

Richard.Williams Posts 25 Registration date Saturday 7 November 2009 Status Member Last seen 18 July 2012 14
11 Mar 2010 à 09:14
You can use this biterscripting batch script.



var str time, dow, date, month, year
set $time = gettime()
set $dow = getdow()
set $date = chex -p "[7" $time ; set $date = chex -p "2]" $date
set $month = chex -p "[5" $time ; set $month = chex -p "2]" $month
set $year = chex -p "[1" $time ; set $year = chex -p "4]" $year

echo $dow " " $date " " $month " " $year





dow=day of week.