INTERACT FORUM

Please login or register.

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

Author Topic: Import date problem  (Read 1263 times)

Tanguero

  • Regular Member
  • World Citizen
  • ***
  • Posts: 115
Import date problem
« on: January 16, 2006, 12:08:04 pm »

I searched some recently imported files through an expression based view scheme using the expressions

FormatDate([Date Imported], yyyy-MM)
and
FormatDate([Date Imported], yyyy-MM-dd)

According to MC, all my files are imported 1905-06-26, 1905-06-27 or 1905-06-28. This is not true.  ;)

Is this a fault or is it a matter of changed syntax?


Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72446
  • Where did I put my teeth?
Re: Import date problem
« Reply #1 on: January 16, 2006, 12:15:03 pm »

Did you check the PC's clock?
Logged

Tanguero

  • Regular Member
  • World Citizen
  • ***
  • Posts: 115
Re: Import date problem
« Reply #2 on: January 16, 2006, 12:22:19 pm »

I checked the PC's clock, and it shows the right time.

I may add that the correct import dates should be a number of dates during the last years.
Logged

Tanguero

  • Regular Member
  • World Citizen
  • ***
  • Posts: 115
Re: Import date problem
« Reply #3 on: January 16, 2006, 12:28:56 pm »

I have a similar view scheme using  Date Created with the same problem, the only difference is that there is one more date in the list.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9143
Re: Import date problem
« Reply #4 on: January 16, 2006, 01:02:52 pm »

I searched some recently imported files through an expression based view scheme using the expressions

FormatDate([Date Imported], yyyy-MM)
and
FormatDate([Date Imported], yyyy-MM-dd)

According to MC, all my files are imported 1905-06-26, 1905-06-27 or 1905-06-28. This is not true.  ;)

Is this a fault or is it a matter of changed syntax?
due to recent changes (assuming that v11.1 is being used) you need to tweak your expressions like so...
FormatDate([Date Imported,0], yyyy-MM)

and

FormatDate([Date Imported,0], yyyy-MM-dd)

then all should be good again.

Tanguero

  • Regular Member
  • World Citizen
  • ***
  • Posts: 115
Re: Import date problem
« Reply #5 on: January 16, 2006, 01:26:43 pm »

Thank you, Marko!

That fixed it. Not that I understand how this is related to "raw data" versus "data formatted for display" as described at http://www.jrmediacenter.com/DevZone/DBExpressions.htm , but you solved my problem. I guess I will understand if I give it the necessary time including some background reading.

/Tanguero
Logged
Pages: [1]   Go Up