I am trying to convert dates of the following format:
2007-10-18 11:31:46 -0400 (Thu, 18 Oct 2007)
or
Thu, 18 Oct 2007 11:31:49 -0400
to the day of the week. Even though the day is given in the above dates, but how can I extract the only day of the week from the above dates?