How to access date in inline groovy script

How can we access date type fields in inline groovy script as native Java Date Object. Currently its available as string while in update queries.