Date is not showing in Format String Widget correctly

I am using format string to show the date.    In the data source tab I have choose date attribute through a association. When I am choosing date attribute directly it is working properly. Attaching screenshot of what the date is showing like: 
2 answers

Are you using the Format String widget ( This is deprecated, you can use the normal Text widget for this. Here you can choose how to format you date:


Hope this helps!


In the Datasource > Behavior tab there is a Date Pattern field. What did you add in that?


You have to put a valid dojo/date/locale patterns.


You can find the valid formats here: