2017-09-04 10 views
0

をこの文字列に変換してから、文字列としてテキストを使用してみましたが、これは良いアイデアではありませんでしたか?groovyで日付を文字列に変換する

+0

を使用しますか?正しいコードとエラー/問題があれば提供してください。 – daggett

+0

はDate()をstringにキャストできません –

答えて

0

toString()も必要ありません。文字列連結でそれを使用するだけで変換しますが、String + Dateではなく、Date + StringをJavaで使用する必要があります。だから、間違っている正確に何

def text=""+date+" "+"http://hjghjghj.ge(Service) /https:jsonparces getting data from taxservice:Successfully received response 

または

def text=(data as String)+" "+"http://hjghjghj.ge(Service) /https:jsonparces getting data from taxservice:Successfully received response 

または

def text=data.toString()+" "+"http://hjghjghj.ge(Service) /https:jsonparces getting data from taxservice:Successfully received response` 
関連する問題