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

- Mar 9, 2010 at 07:51 PM - Latest reply:
Posts
25
Registration date
Saturday November 7, 2009
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.
See more 

1 reply

Best answer
Posts
25
Registration date
Saturday November 7, 2009
Last seen
July 18, 2012
Mar 11, 2010 at 09:14 AM
1
Thank you
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.

Thank you, Richard.Williams 1

Something to say? Add comment

CCM has helped 1692 users this month