XML : Display proper Date using Text field in SAPUI5

I have a view that goes as follows:

  <f:content>                  <core:Title text="Student" />                  <Label text="Name" />                  <Text text="{fullName}" />                  <Label text="Date of Birth" />                  <Text text="{dob}" />    

The {dob} is the value that is being fetched from the Database. When the value is displayed it is displayed as:

  Date of Birth :2015-12-30T00:00:00.000Z    

I want it to be displayed only 2015-12-30.

Help!

No comments:

Post a Comment