PDA

View Full Version : date format mm/dd/yyyy



jgswcm
08-20-2012, 02:55 PM
Hello,

I would like to display the date of a particular binary that I am installing. I am using "Get File Info" to Retried the "File Date" and I output it to a Compiler Variable [EXE-Date]. I display the Compiler Variable [EXE-Date] in the Custom Wizard Dialog box.

When I test the install, I see that the correct date is extracted and displayed. However, the date is in the formate yyyy/mm/dd. Is there a way to display the date as mm/dd/yyyy? I see that there is a macro DATE@D1, but I'm not sure how to wrap it around the Compiler Variable [Exe-Date] to get the correct output.

Thank you,
Joanne

linder
08-21-2012, 08:17 AM
Joanne,

I have created and uploaded an example project for you:

http://www.lindersoft.com/projects/convert_date.zip

The source code converts a date stored in the [MY_DATE] compiler variable (in form of yyyy/mm/dd) and added to a runtime variable to the date format mm/dd/yyyy.

Does this help?

Friedrich

jgswcm
08-21-2012, 08:38 AM
Hi Friedrich,

This worked great!!!
Thank you - I will now learn more about Script Function - Handle String Operation :)

Best Regards,
Joanne

linder
08-21-2012, 08:45 AM
You are very welcome, Joanne :)

BTW, there is a very interesting "Learning SetupBuilder Part I" available:

http://www.lindersoft.com/forums/showthread.php?p=64950#post64950

If there is any problem or question, just let me know.

Friedrich