function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
How to convert the below query into string??
query=[select count() from Account where createddate>:Date.Today()];
Thanks in advance,
I think you are trying to do like this.
Date TodayDate = Date.Today();
String query= 'select count() from Account where createddate >: TodayDate ' ;
Integer AccountCount = Database.CountQuery(Query);
System.debug(' AccountCount ==> ' + AccountCount );
hi ..
whats your exact requirement ?
thanks
chinnu
hi,
try this
string query=[select count() from Account where createddate>:Date.Today()].format();
Thanks a lot:smileytongue:
I think you are trying to do like this.
Date TodayDate = Date.Today();
String query= 'select count() from Account where createddate >: TodayDate ' ;
Integer AccountCount = Database.CountQuery(Query);
System.debug(' AccountCount ==> ' + AccountCount );
All Answers
hi ..
whats your exact requirement ?
thanks
chinnu
hi,
try this
I think you are trying to do like this.
Date TodayDate = Date.Today();
String query= 'select count() from Account where createddate >: TodayDate ' ;
Integer AccountCount = Database.CountQuery(Query);
System.debug(' AccountCount ==> ' + AccountCount );
Thanks a lot:smileytongue: