+ Reply to Thread
Results 1 to 4 of 4

Thread: the datelastmodified method

  1. #1
    nguatg
    Guest

    the datelastmodified method

    hi, i'm trying to add something to my website that will search through a folder and delete any files more than 3 hours old whenever the page is loaded.

    i'm using the datediff method with parameters 'h', datelastmodified and now() but coldfusion is taking datelast modified to be June 7th, 2025 instead of june 25th, 2007.. so needless to say it isn't working in the desired way.



    this is my code













    datelastmodified #dateformat(datelastmodified,"mm/dd/yyyy")#

    datediff "#datediff("n", "#now()#", "#dateformat(datelastmodified,"mm/dd/yyyy")#")#"

    now #now()#

























    anyone ever encountered this problem before? is there anyway i can force it to be recognized correctly?
    More Information:
    1. Before returning from this method, set the value of Dts
    2. File Format: PDF/Adobe Acrobat - Quick ViewPhotoshop through one of the following methods: 1
    3. the date and time when a specified file was last accessed
    4. Hi all; Is the a method to have the Unix OS execute a process when a file is modified? I have a process that maintains generated files in shared memory
    5. DATE) @Column(name = "dateLastModified", unique = false, nullable = true, insertable = true, updatable = true, length = 0) public Date getDateLastModified() { return this
    6. A method that enables a client to see if a server can accept a request before actually sending it
    7. I want to check the DateLastModified property of the FileSystemObject and then compare it to the current date/time to determine the exact time that has passed since the file was updated

    More:


  2. #2
    nguyen_trungnguyen121
    Guest

    You may want to check and make sure there are no hot fixes that would correct this.
    More Information:
    1. In this example, if the user had have typed just
    2. Copyright 2009 The Board of Regents of the University of Wisconsin System Date last modified: Monday,29-June-2009
    3. In addition to the FreeSpace property we looked at, other
    4. He was getting closer, but his DateLastModified was now in UTC time and he needed it in local time
    5. The invention relates to network service groups, and more particularly, to a method and apparatus for monitoring the status of services performed
    6. followed by the date the article was accessed) Packaging Method Accession Number Call Number Label Keywords Abstract Notes Research Notes URL File Attachments Author Address Figure Caption Last Modified Date Translated Author
    7. The Services may not be used to transmit, retransmit, or distribute by e-mail or any other method any material, that violates any
    8. getMap(fromListKey, toListKey, relationship);; In order to output valid XML, any client software requiring this must apply start and end tags to the complete

  3. #3
    hueanh
    Guest

    Your debug code is very different than your CFIF code. So you may not be able to compare the results.




    Code:

    datediff "#datediff("n", "#now()#", "#dateformat(datelastmodified,"mm/dd/yyyy")#")#"
    now #now()#


    What do you get if you output the modified date (as is) and datediff("h", datelastmodified, now())?
    More Information:
    1. This Acceptable Use Policy ("Policy") sets forth the principles, guidelines, and requirements governing the use by customers and users
    2. In these examples, assume that myFSO is a FileSystemObject and that it has been declared as a type Variant or Object
    3. Project writes custom procedures and the user links to them from the appropriate steps in the user's
    4. I was wondering if it is possible to do everything above and NOT change the "Date Last Modified" of the file
    5. As you can see, all we have to do is call the CopyFile method and pass it three parameters:
    6. The reason behind concatenating the values in the two fields has to do with the way ADO functions when you use the Find method to find a record within the database

+ Reply to Thread

Similar Threads

  1. My method and What is your Affiliate marketing method?
    Lots of technique I found in this forum.I just implement some of them and get some profit.But I really want to know more.Can you share your method? ...
  2. Best Method
    What is the best method of getting exposure on Search engine? I have been submitting my website to all the Directories and Business listing website...
  3. Best Method?
    What is the best method or your method for searching the market place for clickbank products? I am new to clickbank and the hardest part is...
  4. A new method or maybe a new method making 50-100 an hour using torrents..
    I found this over on the Black Hat forum.. I thought some people could use it here, if it's been used. Well a reminder.. ok ive looked around...
  5. Is this a bad SEO method?
    At the top of my website I want a message like this: 'Welcome to the leading website.' But I want to place tags around the keyword in that...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish