The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to output date created and date modified?
#1
Hi,
I want to output the properties date created and date modified of a jpg file and I used the script below:

DateTime t
FileGetAttributes("$desktop$\test\1.jpg" 0 t); err out _error.description; ret
t.UtcToLocal;
str st=t.ToStr(4)
out "created=%s modified=%s" st

However, the output does not display the accurate date in which the image was created neither displays any difference between date created and date modified.

Could someone tell what is wrong in the script above?

Thank you,
Emerson


Messages In This Thread
How to output date created and date modified? - by Emerson - 08-03-2019, 01:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)