Changing Date format in a Batch file [Solved/Closed]

Report
-
Posts
25
Registration date
Saturday November 7, 2009
Status
Member
Last seen
July 18, 2012
-
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.

1 reply

Posts
25
Registration date
Saturday November 7, 2009
Status
Member
Last seen
July 18, 2012
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.
1
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 4231 users have said thank you to us this month