cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date Formatting

Former Member
0 Likes
6,868

Hi All,

I created a table with XML view.

This is how i have binded.

<items>

<ColumnListItem>

<cells>

          <Text

            text="{empModel>Empno}" />

          <Text

            text="{empModel>Fname}" />

          <Text

            text="{empModel>Lname}" />

          <Text

            text="{empModel>Addrs}" />

          <Text

            text="{empModel>Desgn}" />

          <Text

            text="{empModel>Dob}" />

</cells>

</ColumnListItem>

    </items>



But my date format which is coming from gateway is in this format "2015-05-05T05:13:19.3167890".


I want to display it as 05-05-2015.


I also have a datepicker and in that datepicker date format is not selected in this format. So basically how i can perform the POST operations?


I am a beginner so if possible attach a simple code for reference.


Thanks in advance.

View Entire Topic
Former Member
0 Likes

Thank you 

Solution provided by Raman is working but i am wondering that whu solution of

is not working in my case. Where might be error?

And one more question.

Suppose i am selecting date from calendar then how i will convert this date for Gateway post?

If i will follow the Raman code then in pattern i will define like this?? pattern: "yyyy-MM-ddTHH:mm:ss.AAAAAAA"??


Same code will be applicable for javascript view also?