

Jul 25 2008, 12:16 AM
Post
#1
|
|
|
Authentic Member ![]() ![]() Group: Authentic Member Posts: 24 Joined: 5-June 08 Member No.: 79,482 Operating System: OSX 10 |
So far, so good. However, ideally the list would automatically delete events occurring on a date earlier than the current date. Is it possible to configure the list to produce that result ? . |
|
|
|
![]() |
Feb 17 2009, 04:57 PM
Post
#2
|
|
![]() New Member ![]() Group: New Member Posts: 4 Joined: 17-February 09 Member No.: 84,241 Operating System: vista |
as the file is a text file using a bit of code find todays date. then any text line date < todays date do not display or delete the number of lines till the next text line date
<html> <body> <script type="text/javascript"> document.write(Date()); </script> </body> </html> ---------------------------------------------------------------------- Date() --------------------------------------------------------------- And in the following example we set a Date object to be 7 days into the future: var myDate=new Date(); myDate.setDate(myDate.getDate()+7); --------------------------------------------display time---------------------------------------------------------- <html> <head> <script type="text/javascript"> function startTime() { var today=new Date(); var h=today.getHours(); var m=today.getMinutes(); var s=today.getSeconds(); // add a zero in front of numbers<10 m=checkTime(m); s=checkTime(s); document.getElementById('txt').innerHTML=h+":"+m+":"+s; t=setTimeout('startTime()',500); } function checkTime(i) { if (i<10) { i="0" + i; } return i; } </script> </head> <body onload="startTime()"> <div id="txt"></div> </body> </html> --------------------------------------------------------------------------------------------------------------------------------------------------- convert date() to a string or convert text date to a date then compare hope this helps david |
|
|
|
Feb 21 2009, 02:50 PM
Post
#3
|
|
![]() Tech Team Group: Administrator Posts: 6,248 Joined: 15-May 05 From: California Member No.: 32,477 Operating System: Win98, Win2k Pro, XP Pro, XP Home |
David Horton,
I'm pleased to see posting and assistance of the quality that you offer. Thanks for deciding to join up. Doug |
|
|
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
1 | dentedsanity | 195 | 30th September 2009 - 01:08 AM Last post by: emeraldnzl |
|||
![]() |
1 | stevanturk | 141 | 28th September 2009 - 10:05 AM Last post by: Ztruker |
|||
![]() |
2 | Metalhead | 196 | 28th June 2009 - 12:54 PM Last post by: Noviciate |
|||
![]() |
35 | jv0802 | 871 | 11th June 2009 - 03:25 PM Last post by: Tomk |
|||
|
Time is now: 21st November 2009 - 01:56 PM |