I need to get the DateValue
s of the last 30 days (starting from yesterday, not today!) excluding saturdays and sundays. I want that the dates are german time (GMT + 1). The only solution I have found so far is to download with FinancialData
the share prices of a german company for the last 30 days,
since stock exchanges are closed during weekends.
For example:
yesterday = Take[DateList @ Today, 3] /. {a__, b_} :> {a, b - 1}
{2015, 3, 30}
FinancialData["F:VOW", {{2015, 2, 28}, yesterday}][[All, 1]]
(F:VOW is a german share) gives the wanted result:
{{2015, 3, 2}, {2015, 3, 3}, {2015, 3, 4}, {2015, 3, 5}, {2015, 3,
6}, {2015, 3, 9}, {2015, 3, 10}, {2015, 3, 11}, {2015, 3, 12}, {2015, 3, 13}, {2015, 3, 16}, {2015, 3, 17}, {2015, 3, 18}, {2015, 3, 19}, {2015, 3, 20}, {2015, 3, 23}, {2015, 3, 24}, {2015, 3, 25}, {2015, 3, 26}, {2015, 3, 27}, {2015, 3, 30}}
But - because of the download of share prices which I don't need - my "solution" takes seconds and seconds.
Please speed this up for me