Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TogoMango on April 20, 2019, 04:39:52 AM

Title: 'get time span between dates' Action. error
Post by: TogoMango on April 20, 2019, 04:39:52 AM
hi. I have a few problems with 'get time span between dates' Action.

it appear this error message when i used 'get time span between dates' Action.

-- FormatException: String was not recognized as a valid DateTime. --

I think I have no problem with my work.

I added screen shot. can you help me?

p.s
im korean
Should country options be added?
Title: Re: 'get time span between dates' Action. error
Post by: djaydino on April 20, 2019, 06:16:06 AM
Hi,
I did some testing and i think on one of the actions the Date Format might have a space in it

Code: [Select]
"MM/dd/yyyy HH:mm " instead of "MM/dd/yyyy HH:mm"
Title: Re: 'get time span between dates' Action. error
Post by: TogoMango on April 20, 2019, 07:36:57 AM
thanks for reply djaydino.

i did checking space but still appear error.

i updated unity3d 2017.4 -> 2018.3.12 a few days ago.

Is this the reason?
Title: Re: 'get time span between dates' Action. error
Post by: TogoMango on April 20, 2019, 08:24:44 AM
I have created and tested a new project in Unity3d 2018.3.12f1.

There still was an error.

i think problem is unity version.
Do you have a successful case in 2018.3.12?
Title: Re: 'get time span between dates' Action. error
Post by: TogoMango on April 21, 2019, 08:25:04 AM
It worked!!

"/" has to change in date format.

MM/dd/yyyy HH:mm ==> MM-dd-yyyy HH:mm

" / " ====> " - "

I solved this problem.
but i spent three days. hahaha :'(