playMaker

Author Topic: 'get time span between dates' Action. error  (Read 1524 times)

TogoMango

  • Playmaker Newbie
  • *
  • Posts: 7
'get time span between dates' Action. error
« 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: 'get time span between dates' Action. error
« Reply #1 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"

TogoMango

  • Playmaker Newbie
  • *
  • Posts: 7
Re: 'get time span between dates' Action. error
« Reply #2 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?

TogoMango

  • Playmaker Newbie
  • *
  • Posts: 7
Re: 'get time span between dates' Action. error
« Reply #3 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?

TogoMango

  • Playmaker Newbie
  • *
  • Posts: 7
Re: 'get time span between dates' Action. error
« Reply #4 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 :'(
« Last Edit: April 21, 2019, 08:31:31 AM by TogoMango »