AnsweredAssumed Answered

Reformatting DateTime data

Question asked by jborgion Champion on Jun 29, 2018
Latest reply on Jun 29, 2018 by Dan_Patterson

I am working with some data that initially was set up in Survey 123.  It's come to me in the form of a file geodatabase table.  When I look at the table, the field is displayed as date time:


However, when I run a search cursor over the data in an effort to parse out the contents of the EditDate, the true values are revealed:


2018-06-22 23:08:20
2018-06-22 23:08:16
2018-06-22 23:08:12
2018-06-22 23:08:07.000001
2018-06-22 23:08:02
2018-06-22 23:13:40
2018-06-22 23:15:42
2018-04-02 21:33:12.954000
2018-06-22 23:08:34.000001
2018-06-22 23:15:21
2018-06-22 23:08:40
2018-06-22 23:08:43
2018-06-22 23:08:45
2018-06-22 23:08:50.000001


I need the data in the form as it is displayed; in another table that came from and Access database, I mash the date time information together with another filed value to form a unique id.  The object is to create a unique id in the tables from Survey123 that can be used as a relationship key....