INTERACT FORUM

Please login or register.

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

Author Topic: Date Imported format  (Read 1657 times)

EpF

  • Citizen of the Universe
  • *****
  • Posts: 649
Date Imported format
« on: April 26, 2005, 11:29:10 am »

How does MC11 format [Date Imported]?  I'm trying to use IsRange([Date Imported]),40320-10080) in an expression, and it's not working  :(

(it doesn't work reversing the numbers either)

EpF

  • Citizen of the Universe
  • *****
  • Posts: 649
Re: Date Imported format
« Reply #1 on: April 26, 2005, 11:37:45 am »

Just realised I had a comma where I shouldn't have - it's not returning a syntax error now, but it still doesn't give me the right result...

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: Date Imported format
« Reply #2 on: April 26, 2005, 12:56:48 pm »

All dates are floating point numbers representing the number of days since 1900.  Negative numbers are supported.

We need to add some helper expression functions to make dates easier to work with.  Until then, FormatDate(...) may let you do some of what you want.
Logged
Matt Ashland, JRiver Media Center

EpF

  • Citizen of the Universe
  • *****
  • Posts: 649
Re: Date Imported format
« Reply #3 on: April 26, 2005, 01:38:16 pm »

Thanks a million, Matt; that explains a lot..  I had to laugh, cause I would never have figured that out, although I got the expression to work well enough in the end; this is what I did:

If(IsRange([Date Imported],1-38450), FormatDate([Date Imported], yyyy//MM), FormatDate([Date Imported], yyyy//MM//dd))

I wanted to tidy up my date imported list so it wasn't miles long, so I experimented with numbers until I got this.

We need to add some helper expression functions to make dates easier to work with.
Would these helper expressions allow the date to be calculated from the current date, so that, in the expression above, the amount of time where the date is given in detail always stays the same?   ::)

Thanks again.

EpF

  • Citizen of the Universe
  • *****
  • Posts: 649
Re: Date Imported format
« Reply #4 on: April 27, 2005, 06:23:57 am »

Just thought of something else; it would be cool if there was some way of inverting the sorting in a View Scheme column, so that most recent dates were at the top...

 ::) ::)

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Date Imported format
« Reply #5 on: April 27, 2005, 08:53:06 am »

~sort=[Date Imported]-d

"-d" (for decending I suppose) reverses sort order.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

EpF

  • Citizen of the Universe
  • *****
  • Posts: 649
Re: Date Imported format
« Reply #6 on: April 27, 2005, 09:46:59 am »

~sort=[Date Imported]-d

"-d" (for decending I suppose) reverses sort order.

Standard search parameters don't work in Advanced Expressions:

http://www.jrmediacenter.com/DevZone/DBExpressions.htm

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Date Imported format
« Reply #7 on: April 27, 2005, 01:25:46 pm »

~sort=[Date Imported]-d

"-d" (for decending I suppose) reverses sort order.

EpF asked if it was possible to reverse sort the contents of the view scheme column.

The above sorts the contents below the viewscheme columns (if i'm not mistaken).

im on MC 10 ..so not sure if this works in MC 11.

Logged

EpF

  • Citizen of the Universe
  • *****
  • Posts: 649
Re: Date Imported format
« Reply #8 on: April 27, 2005, 02:30:29 pm »

The above sorts the contents below the viewscheme columns (if i'm not mistaken).

No, you're not mistaken, but I was looking for something which would sort the viewscheme columns themselves.  Glynor's suggestion sorts the file list only...

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Date Imported format
« Reply #9 on: April 27, 2005, 11:01:58 pm »

Ahh, sorry.  I misread.  I don't think there is a way... 

(I was actually quite shocked that you didn't know you could use the -d option, since you seem to definately be an advanced user otherwise... Now it all makes sense.)

I typically don't use the Column-style view (I prefer the Tree-View style with "populate tree" selected), so when you said column, I assumed you meant the columns (IE. Name, Media Type, etc) in the Grid view (the pane below your columns where the actual files are listed).
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

EpF

  • Citizen of the Universe
  • *****
  • Posts: 649
Re: Date Imported format
« Reply #10 on: April 27, 2005, 11:22:06 pm »

(I was actually quite shocked that you didn't know you could use the -d option, since you seem to definately be an advanced user otherwise... Now it all makes sense.

 ::) ;)

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Date Imported format
« Reply #11 on: April 28, 2005, 02:42:58 am »

No, you're not mistaken, but I was looking for something which would sort the viewscheme columns themselves.  Glynor's suggestion sorts the file list only...

Ahh...this feature has been requested for a long time, maybe they introduce it in v12.

Logged
Pages: [1]   Go Up