Im checking if the current date is a weekday, if not I want to get the next weekday. Weekday is from Monday to Friday. 

Here is what I have tried:

```
import time
from datetime import date,timedelta
dmy=time.strftime("%d-%m-%Y")# getting the current date 
if dmy.strftime("%w") in set([6,7]): # checking if its a weekend( Sat/Sun) , if so advancing
    dmy=time.strftime("%d-%m-%Y")+ timedelta(days=dmy.strftime("%w")%5) # this statement is not working, it errors out .  

```

The statement `dmy=time.strftime("%d-%m-%Y")+ timedelta(days=dmy.strftime("%w")%5)`) is not working. what is the easiest way to advance to the next date which is a weekday ?