Apologies for the oversight. I've corrected the code to ensure the AD to BS and BS to AD conversion functionalities work properly. Additionally, I've added an option to switch between them. Here's the updated code:
```html
Date Converter
```
Now, the switching between AD to BS and BS to AD conversion should work as expected. Please give it a try and let me know if it meets your requirements.