The magic of Perl has failed me, but I was comforted to learn that it was there.

I have a PerlScript ASP that is querying an MS Access DB. One of the fields is a date field, and it seems the PerlScript can't make any sense out of the data. Is there an incantation I can use to release the date?

I was comforted to know that Perl is doing magic to release the other data types. If I ask it to add or write $RS->Fields(0)->{Value} then it does so, since that field is a long integer. But if I ask it to write $RS->Fields(9)->{Value} it writes out the memory address of the scalar pointer. That field is supposed to be a date, represented in the DB in m/d/yyyy format.

I figure that date data is not represented as a string, but as some proprietary data, and as such, Perl can't understand it, or assumes it is another pointer, so it shows it to me. I explicitly dereference it and ask it to write ${$RS->Fields(9)->{Value}}. When I do that it writes a long string or numbers much like "155963932".

What is that? Is it epoch seconds? I haven't a clue.

-Travis


In reply to MS Access DB Date Field by THuG

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.