Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
timest = pjs.timestamp('1960-09-29-12.34.56.12300', "*iso");
data = pjs.char(timest);

More Examples

...

If you need to convert a string with a date value in it, you need to use this in conjunction with pjs.toDate(). Below is an example: 

Code Block
languagejs
timest = pjs.timestamp(pjs.toDate('2001-03-05'));   //The date string value is converted to a date first, and then to a timestamp.