Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Custom field date => sort threads by this date ?
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Custom field date => sort threads by this date ?
If you want sorting, you'll need to make a numerical field for the date.
Use the Integer data type (note, if you change your existing field, you'll lose any stored data!) and use the input/output conversion functions to convert to/from a textual date.

It's a little tricky to do unfortunately.

Example input formatter:

Code:
<?=strtotime({VALUE})?>

Example output formatter:

Code:
<?=date('r', {VALUE})?>


My Blog
04-13-2014 06:54 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Custom field date => sort threads by this date ? - ZiNgA BuRgA - 04-13-2014 06:54 PM

 Standard Tools
Forum Jump: