Forum


13:29

14/10/2009

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
10:28

14/10/2009

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
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66