Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Thread Tools Rate Thread Display Modes
Old 09-28-2004, 04:13 PM
david_douglass david_douglass is online now
Registered User
Join Date: 09-28-2004
Location: New Jersey, USA
Posts: 2
Question put current date/time in generated file

Once my projects build, I'd like to create ReadMe.txt files to be bundled into the installers. I created Files / Write File steps to create the files. What would I place in the "Text to write to the file:" box to include the current date/time in a user friendly format, e. g., Tuesday, September 28, 2004 5:12 PM (or something like that)?

Reply With Quote
Old 09-28-2004, 10:13 PM
kevina kevina is online now
Registered User
Join Date: 03-26-2003
Posts: 825
Here is a simple script function that does what you are looking for. The project level FormattedDate script function does the work, the Log Message step demonstrates it's usage.

Unfortunately vb script doesn't provide a good format function but this isn't complex and does the job (and should be straight forward to modify for similar needs).
Attached Files
File Type: bld formatteddate.bld (575 Bytes, 530 views)
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 06:01 PM.

Copyright 1999-2019 Kinook Software, Inc.