range := "["+ @Text ( @Date(StartDateTime)) + " - " + @Text ( @Date( EndDateTime) ) + "]" ; value := @If( @Date(StartDateTime) = @Date(EndDateTime); @Text ( @Date(StartDateTime) ); @TextToTime( @Explode ( range ))); value
Muss das nicht@Date(StartDateTime) != @Date(EndDateTime)heissen?
vResult = Evaluate({@Explode(@TextToTime(@Text(dateRangeFrom) + "-" + @Text(dateRangeTo))) ;} , docThis)