How to compare current date with event start date?

Hi ,

I want to compare current date with start date of event and the date is coming from extended attritube.

and i am using this approach:

1. Getting current date using this : ($UserCurrentDate = $core_v2_utility.CurrentDate)

2. #if($extatrr.key == 'userStartDate')
#set($userStartDate = $extatrr.value)
#end 

3. #if($userStartDate >= $UserCurrentDate)

Please let me know if there is any other approach!

Thanks,

Palak