The creation date of a file or similar object. Use this tag for questions regarding when a file was created.
Questions tagged [datecreated]
52 questions
101
votes
6 answers
How to get File Created Date and Modified Date
I have an .NET EXE file .
I want to find the file created date and modified date in C# application. Can do it through reflection or with IO stream?

griffithstratton
- 1,021
- 2
- 7
- 5
16
votes
4 answers
How to change created_at format
This should be a simple thing. Well, Im sure it should be simple, this is rails.
The problem is: in the model all data has a field created_at. to retrieve this info in the view I use a block, where is a line t.created_at.
It shows me a result like…

Neon_10
- 711
- 2
- 7
- 19
14
votes
3 answers
PowerShell: Change the timestamp (Date created) of a folder or file
For PowerShell commands on Windows 10, I encounter a strange behaviour.
To change a file's Date created, I use:
Get-ChildItem C:\testFile1.txt | % {$_.CreationTime = '01/11/2005 06:00:36'}
To change a folder's Date created, I use:
Get-Item …

Bart Simpson
- 749
- 3
- 7
- 17
7
votes
5 answers
DateCreated column in Sql Server?
Is there a special way to declare a DateCreated column in a MS Sql Server table so that it will automatically fill it with the appropriate time-stamp when created?
Or.. do I have to provide the datetime to it when I do the query, manually?

KingNestor
- 65,976
- 51
- 121
- 152
5
votes
1 answer
With python, How to read the "date created" of a file?
I am writing a short script in python that will scan through a list of folders for image files and then re-organize them.
One of the optional way of organizing them i wish to have is by the date they are created.
Currently, I am trying to read the…

davidx1
- 3,525
- 9
- 38
- 65
4
votes
4 answers
Getting the original files create date upon upload
We have a process in place that uploads files to our website. It has become important to the users to be able to see when those files were created. I'm looking for a way to extract the original create date from the HttpPostedFile. If anyone has…
Jon
4
votes
3 answers
How can I find the newest .pl file in a directory and all its subdirectories using Perl?
How can I scan an entire directory's contents, including its subdirectories' contents, and find the newest .pl file within them using Perl?
I want to build a sorted array/list of the full file paths of all .pl files within a directory tree.
So, for…

CheeseConQueso
- 5,831
- 29
- 93
- 126
4
votes
1 answer
Magento - look up products created in the last hour
I'm trying to look up products created in the last hour.
I'm able to sort products by created date like so:
$collection = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToSelect('*')
->addAttributeToSort('created_at',…

Markie
- 760
- 17
- 32
3
votes
1 answer
Modifying Creation Date from Filename for mp4 videos
I have a bunch of DV avi videos which I want to cut together. I managed to save the Creation Date out so the videos are named after their creation date. So after I cut them together, I still have the original date of the creation. But then I would…

Balázs Orbán
- 559
- 1
- 4
- 26
3
votes
2 answers
Sort directory files by creation datetime in Windows filesystem
How do I sort a directory by file creation, latest first in PHP 5.2?
I am on Windows 2000.
user252991
2
votes
1 answer
Batch script loop through specific type of files in current directory and get the latest created and next latestcreated files and so on
I have following script to loop through specific type of files and get information about date and time of their creation:
@echo off
setlocal
call :getCreationInfo
cmd /k
:getCreationInfo
for /f "skip=5 tokens=1,2,4,5* delims= " %%a in ('dir /a:-d…

Vicky Dev
- 1,893
- 2
- 27
- 62
2
votes
1 answer
External file properties not updated - VBA
I have a macro that reads out external file properties like date created. The file from where I read is stored on a server. Unfortunately the date returned is not the correct one when running the macro the first time. Only when I open the file or…

Sebastian Walter
- 21
- 1
2
votes
0 answers
Spring data elasticsearch auditing using annotations
I am using spring data elasticserch to persist the documents into elasticsearch. Following is my document structure:
@Id
private String id;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssZ")
@Field(type…

Darshan Mehta
- 30,102
- 11
- 68
- 102
1
vote
1 answer
Can I customize column names for an abstract domain class in Grails?
I have an Abstract Domain Class in Grails wich has fields that all the other class will use, so the other class extends of it. This field are audit fields. I use the automatic timestamp fields: dateCreated and LastUpdated and two other String…

Johnny C.
- 368
- 1
- 5
- 20
1
vote
1 answer
Extracting the createdDateTime and LastModifiedDateTime of a file using inputstream of the file. I'm unable to get it using Metadata class from Tika
I have some files which will be either email attachments or zip attachments. which means that I have stream of the file instead of file or its actual path.
I need to get the created date time and last modified date time of the file using the…

Ruhul Hussain
- 126
- 8