Changing Date format in a Batch file

Solved/Closed
Mr.Peepers - Mar 9, 2010 at 07:51 PM
Richard.Williams Posts 25 Registration date Saturday November 7, 2009 Status Member Last seen July 18, 2012 - Mar 11, 2010 at 09:14 AM
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 November 7, 2009 Status Member Last seen July 18, 2012 14
Mar 11, 2010 at 09:14 AM
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.
1