What does the following code do?
from datetime import datetime dt = datetime.strptime("2024-11-22", "%Y-%m-%d") print(dt)
नीचे दिए गए code का output क्या है?
A. Returns the current date
B. Converts the string "2024-11-22" to a datetime object
C. Returns the string "2024-11-22"
D. Raises a ValueError