500 Days of Summer (2009)
500 Days of Summer (stylized as (500) Days of Summer) is a 2009 American comedy-drama film written by Scott Neustadter and Michael H. Weber, directed by Marc Webb, produced by Mark Waters, and starring Joseph Gordon-Levitt and Zooey Deschanel. The film employs a nonlinear narrative structure, with the story based upon its male protagonist and his memories of a failed relationship.
More at Wikipedia.