Replace string in file with a variable value

Hi Fellows,

I am new to shell, please help we me out in this..
i have file which some lines like this..
[GLOBAL]
$$param1='12-jan-2011'
$$param2='14-jan-2011'
$$param3='30-jan-2011'
.
.
.....so on..

I want to change $$param3 to '31-dec-2011'. i have variable which is storing(30-jan-2011 this is dynamic change everyday) this value..how can i change $$param3 value using my variable to keep all my global parameter dynamic.

Like this?

oldDate=30-jan-2011
newDate=31-dec-2011
sed 's/'$oldDate'/'$newDate'/' myFile

Since there are no metacharacters in your strings, you could do even simpler:

sed "s/$oldDate/$newDate/" myFile