Filter soql queries based on dates
I am trying to write a soql query to return objects based on a datetime field on the object. When I try to use any of the comparison operators on the datetimes ( <, = ) I get the error "No viable alternative at character ' ' " which is ever so helpful in usual salesforce style. The error points at the comparison operator. How can I compare dates in a soql query?
Mail Merge template population using Apex
Is it possible to read the Mail Merge template through Apex and populate with SF custom object data?
Code samples will be a great help.