INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Calculated MONTH field?  (Read 1022 times)

drosoph

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 661
  • TiVo-aholic
Calculated MONTH field?
« on: August 01, 2006, 10:19:56 am »

I need to pull out the MONTH from my file format YYYYMMDD - Name.divx

The DIVX files, when imported, have all fields showing the IMPORTED date as the date for the file.  How do I get this Year and Month (Alpha, not numeral) into some fields so I can use it to create directories later?

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9124
Re: Calculated MONTH field?
« Reply #1 on: August 01, 2006, 11:06:10 am »

I need to pull out the MONTH from my file format YYYYMMDD - Name.divx

Create a new library field, it will be a calculated field, and the template will be:

mid([filename (name)],4,2)

The DIVX files, when imported, have all fields showing the IMPORTED date as the date for the file.  How do I get this Year and Month (Alpha, not numeral) into some fields so I can use it to create directories later?

similarly, this will get you the month: formatdate([date,0],month)
and this the year: formatdate([date,0],yyyy)
Pages: [1]   Go Up