Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ExtJS - DateTime Format question

Posted on 2012-04-04
2
Medium Priority
?
3,128 Views
Last Modified: 2012-08-14
Hello all,

I have a column model and I am trying to format a Oracle timestamp as shortdate with the time.  My Column Model has the following how do I format it as this:
Example current return in the cell: 2012-04-04 14:54:32.275556

I want to show it just as:  04/04/2012 14:54 for example
{
                  header : "Last Updated",
                  dataIndex : 'modifytime',
                  width: 200,
                  sortable: true,
                  renderer: function renderFoo(value, p, record){
                        return value;
                  }
0
Comment
Question by:sbornstein2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 980 total points
ID: 37814985
Try :
{
                  header : "Last Updated",
                  dataIndex : 'modifytime',
                  width: 200,
                  sortable: true,
                  renderer: renderer: Ext.util.Format.dateRenderer('m/d/Y H:i'),

Open in new window


http://www.objis.com/formationextjs/lib/extjs-4.0.0/docs/api/Ext.util.Format.html
0
 

Author Closing Comment

by:sbornstein2
ID: 37817346
thanks
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

DOM Attributes and Properties treatment with jQuery 1.6 by Ivo Stoykov jQuery (http://jquery.com/) 1.6 introduces .prop() (http://api.jquery.com/prop/) and .removeProp() (http://api.jquery.com/removeProp/) methods which allow modifying or removi…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question