Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Getting Started With WebObjects


   

Adding Date and Number Formats

String elements have dateformat and numberformat attributes just like text field elements. Create bindings for the Date Released and Revenue strings so that dateReleased and revenue values are displayed the way they are in the Main page.

  1. Add the date format "%d %b %Y" to the Date Released string. You can select the format from the combo box in the Inspector's binding column.

  2. Add the number format "$###,##0" to the Revenue string. You can select the format from the combo box in the Inspector's binding column.


© 1999 Apple Computer, Inc. – (Last Updated 24 Aug 99)