Tags:
create new tag
view all tags

Question

I'm wondering whether and to what extent TWiki is able to understand dates in different formats.

For example, I have a TWiki form with a couple date fields that by default have the pop-up calendar tool that enters the selected date in the format of "12 Nov 2007." But one user manually entered that date in the format 11/12/2007. I thought that would confuse TWiki, yet when I edited the topic and clicked on the date field calendar, it popped right up to November 12th 2007. In addition, a custom search string I wrote seemed to be able to compare dates written in the different formats. In other words, it appeared to understand that "11/12/2007" was before "6 May 2008."

I'm now trying to build an HTML search form that can be used to filter a list of topics based on their last date modified versus the date value entered by the user in the HTML form. I noticed that the META:TOPICINFO(date) is stored in Unix epoch time, and I'm wondering whether that means the date that gets entered on the search form has to be converted to Unix epoch time in order for TWiki to filter on it, or if TWiki will be able to compare the last date modified to a date value written in mm/dd/yyyy or dd mm yyyy format.

In short, what are TWiki's capabilities for storing and comparing date values in different formats?

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Platform, Forms, Search

-- GarySprague - 08 May 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Sorry, closing this question after more than 30 days of inactivity. Please feel free to re-open if necessary.

-- PeterThoeny - 23 Jul 2008

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-07-23 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.