Arcgis Pro - Field Calculator - Change time to 12:00:00AM

2132
10
04-07-2021 10:07 AM
Labels (1)
RickeyFight
MVP Regular Contributor

So I have some old data that has time in the date field. I do not want time in the date field. 

I know that I can set the time to 12:00:00AM to make the time disappear from the field. 

I need a way to update all the records (different days) to have the same time of day but keep the original date. 

Any suggestions on how to do this? 

 

 

0 Kudos
10 Replies
DanPatterson
MVP Esteemed Contributor

I was using a date example... aka "now".

The datetime module help topic on python.org gives a precise definition of the methods and properties.  "replace" is one of those.  You can replace anything in a datetime object.  My examples were to show what was possible. 

If you are in need of an immediate solution, go with whatever you understand.  I am more interested in teaching people how to fish rather than handing out fish at the shore  😉


... sort of retired...