. . . . . . . . . . . . . . 333
Displaying the Localized Date and Time . . . . . . . . . . . . . . . . . . . . . 334
Displaying the Web Page??™s Most Recent Modification Date . . . . . 338
Determining the Number of Days in the Current Month. . . . . . . . . 339
Determining the Number of Days in Any Given Month . . . . . . . . . . 339
Calculating the Date X Days from the Present Date . . . . . . . . . . . . 340
Taking Advantage of PEAR: Creating a Calendar . . . . . . . . . . . . . . 341
Date and Time Enhancements for PHP 5.1+ Users . . . . . . . . . . . . . . . . 345
Introducing the DateTime Constructor . . . . . . . . . . . . . . . . . . . . . . . 345
Formatting Dates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
Setting the Date After Instantiation. . . . . . . . . . . . . . . . . . . . . . . . . . 346
Setting the Time After Instantiation . . . . . . . . . . . . . . . . . . . . . . . . . 347
Modifying Dates and Times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
xiv ?– CONTENTS
?– CHAPTER 13 Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
PHP and Web Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Pages:
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36