31 Jan 2011 5:34 AM #1
how to get absolute date
while i am getting the value of date i am getting like Thu jan 5 00:00:00 UTC+0530 2012
I need only 5 jan 2012 ,,, like this.
31 Jan 2011 11:38 AM #2
more precise question please!
- how are you getting a date?
- what exactly would you like to get?
31 Jan 2011 1:09 PM #3
when you retreive from server, from the db, you have generally this : 'Y-m-d H:i'.
for formating in, in Ext, client-side as you wish, try this in your datefield :
format:'d F Y' // return something like this -> 08 January 2011 or
format:'d M Y', // return something like this -> 08 Jan 2011
may this help you ?
31 Jan 2011 3:58 PM #4
design problem: "when you retrieve from server, from the db, ..."
persistence can save as timestamp, datetime, date or whatever.
build a "logic" level in between. call it "service" or whatever...
think about a presentation layer that just returns your format
when it comes to client side: check out Date.js..
31 Jan 2011 5:36 PM #5
hey ext... sorry for my english... if you understand what I mean and you can explain with a better english... thanks :-)
i just suppose that on the db there were some simple datetime type used... not timestamp... whatever...
if stuff can just run ok, that can be enough...
By cog in forum Ext 3.x: Help & DiscussionReplies: 8Last Post: 13 Mar 2010, 1:38 PM
By painter in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 6 Apr 2009, 10:11 PM
By saipkjai in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 21 Jan 2009, 7:19 PM
By kelly stevens in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 11 Sep 2007, 12:50 PM