Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

string processing

New Here ,
Jul 14, 2008 Jul 14, 2008
I have a directory containing several filenames like below:
xyz~20080714100808.wav
abc~20080214120808.wav
where 20080714100808 means 14jul2008 at 10:08:08am

I would like to read file by file and convert 20080714100808 to standard datetime format.

The whole project is to display them in a table:
1st col: filename
2nd col: datetime

Pls kindly advise.
188
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 14, 2008 Jul 14, 2008
LATEST
List the filenames in your directory using <cfdirectory> tag. Loop through the results of your <cfdirectory> tag to get each filename. You can then treat your filename as a list using the character "~" as the delimiter. Get the part where it contains the date and time(using ListGetAt) and then get its substring(the year, month, date, hour, minute, seconds) using the Mid function.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources