Shear banding in time dependent flows of polymers and wormlike micelles