Year to Date calculation

Hi guys,

What is the X++ syntax to get the beginning of the year (01/01/2012) and end of the year (12/31/2012) automatically?

Thanks

static void Job3(Args _args)
{
info(strFmt(’%1’, dateStartYr(systemdateget())));
info(strFmt(’%1’, dateEndYr(systemdateget())));
}