Forum
21:46
14/10/2011
Hi,
While working with Dateformat in JQGrid, I am facing an issue with milliseconds, if the first digit is zero
I am using
sorttype: 'date' ,
datefmt : 'm/d/Y H:i:s:u'
My actual dates are :
10/07/2011 09:54:43:075
10/12/2011 12:33:42:034
However, I see the output as,
10/07/2011 09:54:43:75
10/12/2011 12:33:42:34
Zero from milliseconds gets removed. The first digit from millisecond doesnt gets removed if it is not zero.
Can some one please help me how I can overcome this issue?
Thanks in advance
07:46
14/10/2011
Hi,
I am usinf datefmt as I want to display date along with time. Is there any other thing which I shouold use if I have to display date+time.
My colmodel is:
colModel: [
{
name: 'msgdate',
index: 'msgdate',
align: "center",
width: 200,
sorttype:'date',
formatter: 'date',
datefmt: 'm/d/Y H:i:s:u'
}]
Dates for which I am facing problem are:
10/07/2011 09:54:43:075
10/12/2011 12:33:42:034
"0" in millisecond is getting removed from the output.
Please help
Most Users Ever Online: 715
Currently Online:
33 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66