string manipulation
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
string manipulation
text = "C:PROGRA~3SymantecDEFINI~1VIRUSD~120120329.002"In this text the last part is date "20120329.002"I would like to filter this text and get the following results03-29-2012 Rev 2May be we could split the string using "" delimeter and then filter the date part with startswith 20 and then may be tostring method. I dont know how to put this all together in VBscript. Kindly help.
string manipulation
text = "C:PROGRA~3SymantecDEFINI~1VIRUSD~120120329.002"In this text the last part is date "20120329.002"I would like to filter this text and get the following results03-29-2012 Rev 2May be we could split the string using "" delimeter and then filter the date part with startswith 20 and then may be tostring method. I dont know how to put this all together in VBscript. Kindly help.
string manipulation
Start here: http://www.w3schools.com/vbscript/func_mid.asp
You need Left, Right, Mid and InStr functions.
Ther eare planty of examples on the site.jvierra2012-03-30 15:41:05
You need Left, Right, Mid and InStr functions.
Ther eare planty of examples on the site.jvierra2012-03-30 15:41:05