Board Logo

table content dates not converting for display
spw - 4/10/2006 at 12:01 PM

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'

spw - 4/13/2006 at 12:32 PM

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... :)

Back to forum: