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_TopicIcon
Date format issues
14/10/2009
13:29
Avatar
apschexn
New Member
Members
Forum Posts: 2
Member Since:
14/10/2009
sp_UserOfflineSmall Offline

Hi all, this seems like it should be simple but nothing I do will make this work. My raw date string is:

20091002232844

I try so format it with:

formatter:'date', formatoptions:{srcformat:"YmdHis", newformat:"Y-m-d H:i:s"}

But all I get as output is:

1970-01-01 00:00:00

Any help pointing out what I expect to be a simple issue would be greatly appreciated.

-Anthony 

15/10/2009
10:28
Avatar
apschexn
New Member
Members
Forum Posts: 2
Member Since:
14/10/2009
sp_UserOfflineSmall Offline

After digging through the source code I find that a date format like "20091002232844" is not supported by the default date parser in jqgrid. It looks like all the fields of a date/timestamp needs to be separated by some character or space. Now I need to just figure out how to implement a custom formatter. Hope this post saves someone else my frustration.

-Anthony

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
63 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