Skip to main content
Question

How to detect, in a file fgdb, the attributes which are a date to be able to modify their formatting?

  • February 14, 2018
  • 1 reply
  • 7 views

lavairye
Contributor
Forum|alt.badge.img

Hello,

I created a workflow that takes several FGDBs into a directory and dynamically exports them as Geojson files with their jsonschema, and it works well. But ...

The result for attributes with a type "date" is something like "20180205152004" (which is, I suppose, the string in the FGDBs files)

What I want is a rfc3339 format like "2018-02-05T15:20:04".

As my files do not have the same structure, I would like to be able to detect any attribute of type "date", to modify it so that it respects the standard rfc3339.

Of course, if I could know what are the good attributes I could use the DateTimeConverter!

All my efforts remained vain.

Does anyone have an idea?

1 reply

philippeb
Enthusiast
Forum|alt.badge.img+20
  • Enthusiast
  • February 14, 2018

Maybe AttributeValidator would be useful. If it fails, you use DateTimeConverter.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings