Article View: adobe.photoshop.scripting
Article #1874Re: Script to change the File Created Date to date stored in metadata
From: Mick_Murphy
Date: Tue, 20 Jul 2004 19:59
Date: Tue, 20 Jul 2004 19:59
16 lines
1381 bytes
1381 bytes
I haven't actually used this since I figured it out. The following is in VB.NET. All it does is put the current date into the necessary format as a string. The important bit is the format of the final date string which will be the same whatever language you use: 4 digit year space 2 digit month space 2 digit day
Dim adate, theYear, theDay, theMonth As String
Dim theTime As DateTime
'get current date from system clock
theTime = DateTime.Now
'parse date into yyyy-MM-dd
theyear = theTime.ToString("yyyy")
theMonth = theTime.ToString("MM")
theDay = theTime.ToString("dd")
'make date string
adate = theYear & " " & theMonth & " " & theDay
docRef.Info.CreationDate = adate
Technical Details
Message-ID:
<3bb3b313.7@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb3b313.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,26abf090b9c5bc3f X-Google-Attributes: gidf5839,public X-Google-Language: ENGLISH,ASCII-7-bit From: Mick_Murphy@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.photoshop.scripting Subject: Re: Script to change the File Created Date to date stored in metadata Message-ID: <3bb3b313.7@webx.la2eafNXanI> Date: Tue, 20 Jul 2004 12:59:06 -0700 References: <3bb3b313.-1@webx.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit