I have a datefield and a timefield in my ExtJS form and I have to fill them with data sent from the server. The server sends data in the following format (via Ajax):
date=2013-05-10T00:00:00.000+04:00,time=1970-01-01T00:30:00.000+03:00
How do I get that displayed in the form fields formatted as Y/m/d
and H:i
respectively? I have tried various combinations but they do not work. The fields remain either blank or filled with the entire data value sent from the server.
UPDATE:
If it would make things easier, I can make the server send the values in a different format, say milliseconds...