Query by created time IOS

I have a one to many relationship with RetailerPage to trendingStyles.
I get my most recent date of my pulled trendingStyle and store it in mostRecentDate.
I then want to query and find only the cards who were create before the card.
Below is my query. Is that correct?

whereClause = “RetailerPage[trendingStyles].created < ‘(mostRecentDate!)’”

Hi Rich,

Are you querying RetailerPage objects or trendingStyles objects?