Hey
Behdad,
Can't think of any native functionality in ReadyAPI that'll do this.
You can use Java to convert bigDecimal dates to simpledate/datetime format.
A stackoverflow shows you how to perform the conversion. -->
BigDecimal bi = new BigDecimal("1096255084000");
double decimal_timestamp = bi.doubleValue();
DateFormat formatter = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss.SSS");
formatter.setTimeZone(TimeZone.getTimeZone("UTC"));
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(decimal_timestamp);
String date = formatter.format(calendar.getTime());
System.out.println(decimal_timestamp
I also found another option. -->
String value = bigDecimal.toString();
DateFormat format = new SimpleDateFormat("yyyyMMdd");
format.setLenient(false); // to prevent things like February 30th
Date date = format.parse(value);
We can of course tweak the above to do your conversion, HOWEVER, i'm unsure how to pick up a value from a JWT.
Think you might need a real expert like
KarelHusa o4
ChrisAdams, etc.
Hope this gives you a start off point,
Cheers,
Rich
Cheers