Manage Learn to apply best practices and optimize your operations.

Easy method for converting legacy date values to Notes Date fields

This tip describes a method for converting legacy date values to Notes Date fields.

In applications that use LEI to pull data from legacy system, date values come over as numeric values (20021006). To convert to a Notes date field, I simply add a computed date field to the form using the following value (where PHSDAT is the numeric field):

 t1 := @Left(@Text(PHSDAT);4); t2 := @Right(@Left(@Text(PHSDAT);6);2); t3 := @Right(@Text(PHSDAT);2); @TextToTime(t2 +"/"+t3 +"/"+t1)

Dig Deeper on Domino Resources - Part 4

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...