Jahia in English > Issue with Timestamp...

0 (0 Good)
0 (0 Bad)

Issue with Timestamp datatype

by  rmarquez »  2011/06/07 18:31

Hi folks,

I have the following problem: retrieve a Timestamp datatype in a query and I need to set it to a JahiaField, but the setValue () only accepts string values, so I'm parsing it as follows

[code:2fx4uzwf]
JahiaField someField = container/1
[/code:2fx4uzwf]

The data is stored in the jahiaField, but It's not displayed on the page.

Has Someone had a similar problem?, if so could you help me ?

Regards,

Rafael M?�rquez

  (rmarquez)

Number of messages  7
Registration date
0 (0 Good)
0 (0 Bad)

Re: Issue with Timestamp datatype

by  shyrkov »  2011/06/07 18:31

Hello Rafael,

the value of date fields is stored in the database in milliseconds (to be independent of any formatting).

In your case the following should work:
[code:nmtyo9kg]
JahiaField someField = container/1
[/code:nmtyo9kg]

Kind regards
Sergiy
  • Re: Issue with Timestamp datatype
    2011/06/07 18:31

    shyrkov Hello Rafael,<br/><br/>the value of date fields is stored in the database in milliseconds (to be independent of any formatting).<br/><br/>In your case the following should work:<br/>[code:nmtyo9kg]<br/>JahiaField someField = container/1<br/>[/code:nmtyo9kg]<br/><br/>Kind regards<br/>Sergiy

  • Number of messages  407
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page