Which one is grammatically correct?

I worked at X company ...

  • from Aug 2005 to Sep 2007.
  • from A up to B.
  • from A until B.
  • from A till B.
  • between A and B.

Solution 1:

All are grammatical. If you’re looking for advice on which to use, the first is the simplest and likely to be suitable in most contexts (although I prefer to write the names of months in full in formal writing).

Solution 2:

You should say Aug 2005 through Sep 2007:

through 4. —used as a function word to indicate a period of time: as a : during the entire period of [all through her life] b : from the beginning to the end of [the tower stood through the earthquake] c : to and including [Monday through Friday][ [MW]]1

Edit: According to this reference, Aug 2005 through to Sep 2007 is "sometimes used" in British English.