How To Pass Sobject As Parameter In Apex, If you put 'CreatedDate' in quotes, it should be fine.