Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
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)?

Thanks,
Dave
Reply With Quote
  #2  
Old 09-28-2004, 10:13 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-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, 1551 views)
Reply With Quote
Reply


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 04:55 AM.


Copyright © 1999-2023 Kinook Software, Inc.