What's new

Welcome to the GSA Community!

This is the Official User Community for GE's GeoSpatial Analysis products. By registering with us, you'll be able to discuss, share and private message with other members of our Community.
Registration is currently only allowed with a personalized invitation code, which you might have received previously. If you haven't got one:
please get in touch with your GE contact person or your regional moderator(s): see FAQ.

SignUp Now!

GSA Pro 5.3. Converting Date YYYYMMDD format

Björn Schaefer

Member
Confirmed GSA Customer
Joined
Oct 26, 2020
Messages
91
Hi all :)

I'd like to convert a given date into another format:

What I've tried so far:

1669365725429.png

as you can see, this won't work properly, 'cause the result should be 20220311 instead of 2022311 (see marked row above)

trying it this way, the result isn't working at all:
1669366031038.png

any hints / ideas?

thanks a lot so far !
 

Björn Schaefer

Member
Confirmed GSA Customer
Joined
Oct 26, 2020
Messages
91
Hi Björn,

Have you tried formatting the date itself directly, using:



That should hopefully result in a string with the correct format.

Regards,

Frank
yes I did that, but unfortunately with YYYY instead of yyyy...
1669374359543.png
checking out this, everything is fine:
1669374483829.png

so let me say: THANK YOU :)
 

Frank Pistorius

Spatial Eye
Confirmed GSA Customer
Joined
May 26, 2020
Messages
36
Hi Björn,

Good to hear you've got things up and running.

For future reference, the DateTime.ToString() method page in the GSA Documentation shows some more possibilities with respect to formatting strings.

Regards,

Frank
 
Top