I am trying to figure our how to update a field based on two other fields, first field is a text field and the other is a date field. I am trying to figure out how to check if the Datefield field is populated with a date. So if the first and second filed have those parameters I need the third field updated like below. The date field either has a date or it's just empty/blank. I would also like to print the dates but I can't seem to get the format/ syntax right. Date field is month, day, year.
with arcpy.da.UpdateCursor(lyr,['datefield', 'Verified', 'update']) as cursor:
for row in cursor:
if row[0] not in (""," ",None):
if row[1] = "Verified" # text
if row[0]= "date" #check if any date is in field, field has dates 09/10/2021.
#print the dates
#date = datetime.datetime.strftime((row[0]),"%m/%d/%y")
#print (date)
row[2] = "Yes Verified, with date"
else:
row[2] = "Not Verified, no date"
cursor.updateRow(row)