Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
MilliSeconds ignoring '0' in DateFormat of JQGrid
14/10/2011
21:46
Avatar
surbhit4u
New Member
Members
Forum Posts: 2
Member Since:
14/10/2011
sp_UserOfflineSmall Offline

Hi,
While working with Dateformat in JQGrid, I am facing an issue with milliseconds, if the first digit is zero Surprised

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

02/11/2011
16:03
Avatar
dluis
Member
Members
Forum Posts: 19
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

How can you use datefmt with time? I have trying and always getting an error when trying to save when creating a new record.

Can you post your colmodel code please?

04/11/2011
07:46
Avatar
surbhit4u
New Member
Members
Forum Posts: 2
Member Since:
14/10/2011
sp_UserOfflineSmall Offline

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

07/11/2011
16:57
Avatar
dluis
Member
Members
Forum Posts: 19
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

Did you check the output from the server? I don't think that datefmt accepts de time... at least when you use the validations for date.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information