Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: table content dates not converting for display
spw
Member

Posts: 44
Registered: 12/8/2005
Location: Australia
Member Is Offline
posted on 4/10/2006 at 12:01 PM Reply With Quote
table content dates not converting for display


I cannot get Tables Pro to reformat and display dates as required - treats them as text strings.

Is there something wrong with any of the following or should I be looking elsewhere (and if so, where)???

An extract of my content file is as follows:
-----------------------------------------------------
["art_015", "Judith", "Durham", '04-11-1977'],
["art_028", "Phil", "Everley", '13-05-1977'],
["art_014", "Glenn", "Frey", '18-11-1997'],
-----------------------------------------------------

My template file definiton for the last colum is as follows:
-----------------------------------------------------
{
'name' : 'Date', //columns title
'type' : DATE, // standard types (STR, NUM) or custom compare function
'format_input' : 'd-m-Y',
'format_output' : 'M d Y'
}
-----------------------------------------------------
View User's Profile View All Posts By User U2U Member
spw
Member

Posts: 44
Registered: 12/8/2005
Location: Australia
Member Is Offline
posted on 4/13/2006 at 12:32 PM Reply With Quote
The old RTFM problem - i didnt include something......


To use date format you need to include dt_parser.js file, as per the following:
<script language="JavaScript" src="ttp_files/dt_parser.js"></script>

Also, it is useful to add the dt_parser.js to the ttp_files directory... :)
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Simple
XP-styled
3D designed
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004