get date from datetime code example
Example 1: sql datetime as date
SELECT
CONVERT(DATE, GETDATE()) date;
Example 2: get current date datetime
from datetime import date
today = date.today()
print("Today's date:", today)
SELECT
CONVERT(DATE, GETDATE()) date;
from datetime import date
today = date.today()
print("Today's date:", today)