US vs European date
Posted: Tue Aug 02, 2016 12:35 am
I done some "magic" with the time and date when a event is being moved or re-scheduled. So in the beginning of the Create Edit Delete Event I save the original data and in the end of the script, if a error occur I save the old time.
Its like this in the beginning:
Set Variable [$Time_Start ; Get ( Data::Time_Start ) ]
And this after the error occur:
Set field [ Data::Time_Start ; $Time_Start ]
In the beginning, when the variable being added the Data::Time_Start-felild i have 2016-08-03, therefore the $Time_Start get the same data. But after the set field we have a "?" in the Data::Time_Start.
If i try to use GetAsDate ( $Time_Start ) it also will resault in "?".
If i use the Get ( CurrentDate) function it will give me" 8/2/2016".
Is there a way to change DayBack to handel European styled dates or another smart way to get around this problem.
Its like this in the beginning:
Set Variable [$Time_Start ; Get ( Data::Time_Start ) ]
And this after the error occur:
Set field [ Data::Time_Start ; $Time_Start ]
In the beginning, when the variable being added the Data::Time_Start-felild i have 2016-08-03, therefore the $Time_Start get the same data. But after the set field we have a "?" in the Data::Time_Start.
If i try to use GetAsDate ( $Time_Start ) it also will resault in "?".
If i use the Get ( CurrentDate) function it will give me" 8/2/2016".
Is there a way to change DayBack to handel European styled dates or another smart way to get around this problem.