Hello Venkatesh,
For 1 you can retrieve the system attributes from the IMendixObject via the generic get method:. You could do something like:
myObj.getMendixObject().getValue(context, "createdDate");
For 2 you can use a java formatter like SimpleDateFormat if you are processing this yourself.
Edit: I’ve found some code I’ve used for parsing and made it into a format example, see below:
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
df.setTimeZone(TimeZone.getTimeZone("UTC"));
String myFormattedDate = df.format(date);
Hope this helps