RE: Files with Time and date stamps...

2003-09-05 Thread Matt Blatchley
Awesome, thanks.

-matt

-Original Message-
From: Mike Mertsock [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 10:26 PM
To: CF-Talk
Subject: Files with Time and date stamps...


Oof, immediately after postin my reply I realized a potentially much better
solution. Will the last modified date/time of the files reflect the date and
time mentioned in the filenames? If so, use cfdirectory as I mentioned but
specify sort="datelastmodified DESC". Then first record returned will be the
most recent file matching the filter :-)

Mike Mertsock
Alfred University Web Team

>I'm trying to find a particular file in a directory that has a file name
>similar to 'FILENAME20030803034545.csv'.
>
>I'm trying to use FileExists() but I keep running issues with the time, not
>so much the dateHow do I look for a file that has the most recent date
>and time.  Is there an efficient way to find this out?
>
>Thanks,
>
>Matt

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com


Files with Time and date stamps...

2003-09-05 Thread Mike Mertsock
Oof, immediately after postin my reply I realized a potentially much better solution. 
Will the last modified date/time of the files reflect the date and time mentioned in 
the filenames? If so, use cfdirectory as I mentioned but specify 
sort="datelastmodified DESC". Then first record returned will be the most recent file 
matching the filter :-)

Mike Mertsock
Alfred University Web Team

>I'm trying to find a particular file in a directory that has a file name
>similar to 'FILENAME20030803034545.csv'.
>
>I'm trying to use FileExists() but I keep running issues with the time, not
>so much the dateHow do I look for a file that has the most recent date
>and time.  Is there an efficient way to find this out?
>
>Thanks,
>
>Matt
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


Files with Time and date stamps...

2003-09-05 Thread Mike Mertsock
Well the cfdirectory tag works similarly to cfquery, in that it returns a set of 
query-type records and you can specify fields by which to sort. So try using 
cfdirectory to list files filtered by *.csv or FILENAME*.csv. And also specify 
sort="name DESC". This is assuming that the FILENAME part of your csv file names is 
always the same.

This will return your csv files, ordered descending by the file name, and I think by 
the way you describe the file name format, the one with the most recent date/time will 
be the first record. So you can get the file name by queryname.name[1] where queryname 
is the value of the name attribute for the cfdirectory tag.

HTH
Mike Mertsock
Alfred University Web Team

>I'm trying to find a particular file in a directory that has a file name
>similar to 'FILENAME20030803034545.csv'.
>
>I'm trying to use FileExists() but I keep running issues with the time, not
>so much the dateHow do I look for a file that has the most recent date
>and time.  Is there an efficient way to find this out?
>
>Thanks,
>
>Matt
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com


Files with Time and date stamps...

2003-09-04 Thread Matt Blatchley
I'm trying to find a particular file in a directory that has a file name
similar to 'FILENAME20030803034545.csv'.

I'm trying to use FileExists() but I keep running issues with the time, not
so much the dateHow do I look for a file that has the most recent date
and time.  Is there an efficient way to find this out?

Thanks,

Matt

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm


Re:RESOLVED time and date to abort a page

2003-02-11 Thread Dave Lyons
Thanks Charlie!
i had too only make a small adjustment and it works:)




sorry charlie



youre in time!


dave

- Original Message -
From: "charlie griefer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 6:41 PM
Subject: Re: time and date to abort a page


> Dave:
>
> You should be able to accomplish this very easily with cfform...
>
> (KIDDING...hey, i kid because i love)
>
> Seriously...looks like you were on the right track.
>
> 
>
> 
> SORRY
> 
>
> hth,
> Charlie
>
>
>
> Dave Lyons writes:
>
> > sorry for another stupid post but I cant get this too wok.
> > Been reading the live docs and its confused me even more! figures!
> >
> > I just got mad and deleted the code and starting fresh
> >
> > what I need to do is on a certain day of the week and at a certain time
(say Friday, march 10, 2003 at 6pm exactly) to abort any further actions
with the page
> > so someone cant make an entry into the db 1 sec after the deadline.
> > should be simple but I cant get it to work right, did once but it was
reversed, lol
> > Been messing around with a lot of the date & time functions but I really
couldn't tell which 1 to use.
> > Basically something like this
> > 
> > 
> > 
> > 
> > Sorry time is up
> >
> > 
> >
> > 
> > 
> >
> > ..rest of page
> >
> > 
> >
> > any suggestions.. (besides read the ben forta book, lol)
> >
> > dave
> > 
> >
> >
> >
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: time and date to abort a page

2003-02-11 Thread Dave Lyons
it almost worked
if i set the date to yesterday it works when i use the following (see below)
it doesnt work, which it should because the time has passed




sorry charlie



youre in time!




- Original Message -
From: "charlie griefer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 6:41 PM
Subject: Re: time and date to abort a page


> Dave:
>
> You should be able to accomplish this very easily with cfform...
>
> (KIDDING...hey, i kid because i love)
>
> Seriously...looks like you were on the right track.
>
> 
>
> 
> SORRY
> 
>
> hth,
> Charlie
>
>
>
> Dave Lyons writes:
>
> > sorry for another stupid post but I cant get this too wok.
> > Been reading the live docs and its confused me even more! figures!
> >
> > I just got mad and deleted the code and starting fresh
> >
> > what I need to do is on a certain day of the week and at a certain time
(say Friday, march 10, 2003 at 6pm exactly) to abort any further actions
with the page
> > so someone cant make an entry into the db 1 sec after the deadline.
> > should be simple but I cant get it to work right, did once but it was
reversed, lol
> > Been messing around with a lot of the date & time functions but I really
couldn't tell which 1 to use.
> > Basically something like this
> > 
> > 
> > 
> > 
> > Sorry time is up
> >
> > 
> >
> > 
> > 
> >
> > ..rest of page
> >
> > 
> >
> > any suggestions.. (besides read the ben forta book, lol)
> >
> > dave
> > 
> >
> >
> >
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: time and date to abort a page

2003-02-11 Thread Dave Lyons
u like that tony, lol

haven't tried it yet, looking at some of the docs. You know what I hate
about these live docs? they fricking throw forms into everyone so you cant
tell the correct way to do something.

by the time I get to the cfm learning during the evening, my brains fried,
someone must have slipped me a bunch of 'cid in high school cause i sure
cant remember anything anymore, lol



Dave
- Original Message -
From: "Tony Weeg" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 6:46 PM
Subject: RE: time and date to abort a page


> dave,
>
> is that nice to pour gas on fires :)
>
> did you get it figgered out?
>
> tw
>
> -Original Message-
> From: Dave Lyons [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 11, 2003 6:44 PM
> To: CF-Talk
> Subject: Re: time and date to abort a page
>
>
> lol!  :)
> thanks I needed a good laugh at the moment!
> I was like oh not cfform AGAIN
> haha
> its the damn seconds that are really throwing me off.
> Thanks i will try and see
>
> is it wise to use cfabort in this case?
>
> and do I have to cflock it?? haha
>
> go avs!
> Dave
> -
>
> - Original Message -
> From: "charlie griefer" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 11, 2003 6:41 PM
> Subject: Re: time and date to abort a page
>
>
> > Dave:
> >
> > You should be able to accomplish this very easily with cfform...
> >
> > (KIDDING...hey, i kid because i love)
> >
> > Seriously...looks like you were on the right track.
> >
> > 
> >
> > 
> > SORRY
> > 
> >
> > hth,
> > Charlie
> >
> >
> >
> > Dave Lyons writes:
> >
> > > sorry for another stupid post but I cant get this too wok.
> > > Been reading the live docs and its confused me even more! figures!
> > >
> > > I just got mad and deleted the code and starting fresh
> > >
> > > what I need to do is on a certain day of the week and at a certain
> time
> (say Friday, march 10, 2003 at 6pm exactly) to abort any further actions
> with the page
> > > so someone cant make an entry into the db 1 sec after the deadline.
> > > should be simple but I cant get it to work right, did once but it
> was
> reversed, lol
> > > Been messing around with a lot of the date & time functions but I
> really
> couldn't tell which 1 to use.
> > > Basically something like this
> > > 
> > > 
> > > 
> > > 
> > > Sorry time is up
> > >
> > > 
> > >
> > > 
> > > 
> > >
> > > ..rest of page
> > >
> > > 
> > >
> > > any suggestions.. (besides read the ben forta book, lol)
> > >
> > > dave
> > > 
> > >
> > >
> > >
> >
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: time and date to abort a page

2003-02-11 Thread Tony Weeg
dave,

is that nice to pour gas on fires :)

did you get it figgered out?

tw

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 11, 2003 6:44 PM
To: CF-Talk
Subject: Re: time and date to abort a page


lol!  :)
thanks I needed a good laugh at the moment!
I was like oh not cfform AGAIN
haha
its the damn seconds that are really throwing me off.
Thanks i will try and see

is it wise to use cfabort in this case?

and do I have to cflock it?? haha

go avs!
Dave
-

- Original Message -
From: "charlie griefer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 6:41 PM
Subject: Re: time and date to abort a page


> Dave:
>
> You should be able to accomplish this very easily with cfform...
>
> (KIDDING...hey, i kid because i love)
>
> Seriously...looks like you were on the right track.
>
> 
>
> 
> SORRY
> 
>
> hth,
> Charlie
>
>
>
> Dave Lyons writes:
>
> > sorry for another stupid post but I cant get this too wok.
> > Been reading the live docs and its confused me even more! figures!
> >
> > I just got mad and deleted the code and starting fresh
> >
> > what I need to do is on a certain day of the week and at a certain
time
(say Friday, march 10, 2003 at 6pm exactly) to abort any further actions
with the page
> > so someone cant make an entry into the db 1 sec after the deadline.
> > should be simple but I cant get it to work right, did once but it
was
reversed, lol
> > Been messing around with a lot of the date & time functions but I
really
couldn't tell which 1 to use.
> > Basically something like this
> > 
> > 
> > 
> > 
> > Sorry time is up
> >
> > 
> >
> > 
> > 
> >
> > ..rest of page
> >
> > 
> >
> > any suggestions.. (besides read the ben forta book, lol)
> >
> > dave
> > 
> >
> >
> >
> 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: time and date to abort a page

2003-02-11 Thread Dave Lyons
lol!  :)
thanks I needed a good laugh at the moment!
I was like oh not cfform AGAIN
haha
its the damn seconds that are really throwing me off.
Thanks i will try and see

is it wise to use cfabort in this case?

and do I have to cflock it?? haha

go avs!
Dave
-

- Original Message -
From: "charlie griefer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 6:41 PM
Subject: Re: time and date to abort a page


> Dave:
>
> You should be able to accomplish this very easily with cfform...
>
> (KIDDING...hey, i kid because i love)
>
> Seriously...looks like you were on the right track.
>
> 
>
> 
> SORRY
> 
>
> hth,
> Charlie
>
>
>
> Dave Lyons writes:
>
> > sorry for another stupid post but I cant get this too wok.
> > Been reading the live docs and its confused me even more! figures!
> >
> > I just got mad and deleted the code and starting fresh
> >
> > what I need to do is on a certain day of the week and at a certain time
(say Friday, march 10, 2003 at 6pm exactly) to abort any further actions
with the page
> > so someone cant make an entry into the db 1 sec after the deadline.
> > should be simple but I cant get it to work right, did once but it was
reversed, lol
> > Been messing around with a lot of the date & time functions but I really
couldn't tell which 1 to use.
> > Basically something like this
> > 
> > 
> > 
> > 
> > Sorry time is up
> >
> > 
> >
> > 
> > 
> >
> > ..rest of page
> >
> > 
> >
> > any suggestions.. (besides read the ben forta book, lol)
> >
> > dave
> > 
> >
> >
> >
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: time and date to abort a page

2003-02-11 Thread Dave Lyons
i have and am using it for another part of this but i dont think it does
what i am looking for but maybe, i have no idea and a fricking blinding
headache.

basically i want it to do this
if they submit there test before the deadline all is good and its entered to
the db. But the slackers who hit submit after the deadline get a too bad
meesage
does that help?

- Original Message -
From: "Scott Weikert" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 6:33 PM
Subject: Re: time and date to abort a page


> Look at the DateDiff() function.
>
>
> >what I need to do is on a certain day of the week and at a certain time
> >(say Friday, march 10, 2003 at 6pm exactly) to abort any further actions
> >with the page
> >so someone cant make an entry into the db 1 sec after the deadline.
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: time and date to abort a page

2003-02-11 Thread charlie griefer
Dave: 

You should be able to accomplish this very easily with cfform... 

(KIDDING...hey, i kid because i love) 

Seriously...looks like you were on the right track. 

 


SORRY
 

hth,
Charlie 

 

Dave Lyons writes: 

> sorry for another stupid post but I cant get this too wok.
> Been reading the live docs and its confused me even more! figures! 
> 
> I just got mad and deleted the code and starting fresh 
> 
> what I need to do is on a certain day of the week and at a certain time (say Friday, 
>march 10, 2003 at 6pm exactly) to abort any further actions with the page
> so someone cant make an entry into the db 1 sec after the deadline.
> should be simple but I cant get it to work right, did once but it was reversed, lol
> Been messing around with a lot of the date & time functions but I really couldn't 
>tell which 1 to use.
> Basically something like this
> 
> 
> 
> 
> Sorry time is up 
> 
>  
> 
> 
>  
> 
> ..rest of page 
> 
>  
> 
> any suggestions.. (besides read the ben forta book, lol) 
> 
> dave
>  
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: time and date to abort a page

2003-02-11 Thread Scott Weikert
Look at the DateDiff() function.


>what I need to do is on a certain day of the week and at a certain time 
>(say Friday, march 10, 2003 at 6pm exactly) to abort any further actions 
>with the page
>so someone cant make an entry into the db 1 sec after the deadline.

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




time and date to abort a page

2003-02-11 Thread Dave Lyons
sorry for another stupid post but I cant get this too wok.
Been reading the live docs and its confused me even more! figures!

I just got mad and deleted the code and starting fresh

what I need to do is on a certain day of the week and at a certain time (say Friday, 
march 10, 2003 at 6pm exactly) to abort any further actions with the page
so someone cant make an entry into the db 1 sec after the deadline.
should be simple but I cant get it to work right, did once but it was reversed, lol
Been messing around with a lot of the date & time functions but I really couldn't tell 
which 1 to use.
Basically something like this




Sorry time is up






..rest of page



any suggestions.. (besides read the ben forta book, lol)

dave



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




SOLVED RE: Time and Date

2001-12-19 Thread Tangorre, Michael T.

Sorry.. I just figured it out.



-Original Message-
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 19, 2001 9:50 PM
To: CF-Talk
Subject: Time and Date


Anyone have a suggestion for the following.
I have to form fields, date and time. I need to make an ODB date out of
these together. Any ideas.. 

Michael T. Tangorre


Resident Assistant - Brick
Web Applications Developer
A.U. Webteam Slave  :-)
AIM: CrazyFlash4



__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Time and Date

2001-12-19 Thread Tangorre, Michael T.

Anyone have a suggestion for the following.
I have to form fields, date and time. I need to make an ODB date out of
these together. Any ideas.. 

Michael T. Tangorre


Resident Assistant - Brick
Web Applications Developer
A.U. Webteam Slave  :-)
AIM: CrazyFlash4


__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists