Select to view content in your preferred language

Query feature if an attribute is null after 180 days of date on another attribute?

1010
10
Jump to solution
10-05-2018 09:50 AM
by Anonymous User
Not applicable

Looking for a sample ArcPy script I can modify for my use. Any suggestions?

0 Kudos
10 Replies
RandyBurton
MVP Alum

You could try 'Between' and set hours = '00:00:00' and '23:59:59' (between will get both these values and all those inbetween).  Or add another day with timedelta.

dp = date_past.strftime("%Y-%m-%d")

wc = "Field IS NULL AND DateField BETWEEN DATE '{} 00:00:00' AND DATE '{} 23:59:59' ".format(dp,dp))
‍‍‍‍‍‍‍