Hi!
i want to make a dummy variable that takes the value 1 if we observe a sale after a certain date for a spesific location
I have the date column on %tc format (e.g. 04jun2018 00:00:00) and i can't figure out how to do this correctly

i do this

generate treatment =0
replace treatment =1 if location=1 & salestime => tc(06.jun2018 00:00)

but then stata replace the dummy treatment to 1 if location is 1 and all the sales on this location, not only the ones after this spesific time.

Does anyone know?