Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Convert date to string

$
0
0

date~b~c~d~e~Time_stamp~f~g_h~i~j

22-Jan-14~1~3172~9103~101~22-Jan-14 7:05:31 AM~0~0~~7888888

22-Jan-14~2~3173~9103~101~22-Jan-14 7:06:04 AM~0~0~~4566666

 

I have few thousand text files in different sub folders. All the files have the values with column name as above

 

I need to convert all the date value in Time_stamp column into string value, example :22-Jan-14 7:06:04 AM to yyyyMMddHHmmss (20140222070604) . Please help, thanks!


Viewing all articles
Browse latest Browse all 6937

Trending Articles