How Can we change the Date format from Variable

curr_date=yyyy-mm-dd
1.we want get month from the above date
2.Change the format into yyyymmdd

curr_date=yyyy-mm-dd
echo $curr_date | cut -d- -f2
echo $curr_date | tr -d -

-ilan
PS:please search in the forum before posting any question; most of the times (these kind of solutions) will be available already!!