How to pass runtime variable (datetime) in scala

Hi All,

Consider the following scenario…

import java.util.Calendar

val timestamp = Calendar.getInstance.getTime \ I have defined the timestamp variable

Following my request which i wanted to pass the runtime datetime value.

.formParam(“Id”, “5”)
.formParam(“extra”, “”"{“inputproname”:"+timestamp+",“textareadesc”:""")) \ passing the same timestamp here

Scala script has been successfully executed but it created as name with << +timestamp+ >> instead of actual timestamp value

So can anyone tell me what am i doing wrong here? how to pass the time timestamp variable ???

Your help would be much appreciated.