Filter using createdDateTime(SystemField)

static void CreatedbyFilter(Args _args)
{
TestTable _TestTable ;
;

while select _TestTable where _TestTable .createdDateTime == _________
{
info(Strfmt(“Test ID : %1”,_TestTable .TestID));

}

}

Today I have generated 5 records in TestTable.

in createdDateTime(systemField) Date are same in all records. But Time are diff.

I want to filter the 5 records which is created today?

What will come in above condition…?

Refer Below Link

http://dax-world.blogspot.com/2010/02/conversion-of-utcdatetime-in-dynamics.html

public static void CreatedbyFilter()

{

TestTable _TestTable ;

;

while select _TestTable

where _TestTable.createdDateTime>= datetobeginUtcDateTime(today(), DateTimeUtil::getUserPreferredTimeZone()) &&

_TestTable.createdDateTime <= datetoendUtcDateTime(today(), DateTimeUtil::getUserPreferredTimeZone())

{

info(Strfmt(“Test ID : %1 – Created Date Time : %2”, _TestTable.TestID,_TestTable.createdDateTime));

}

}