1 | <html>
|
---|
2 | <head>
|
---|
3 |
|
---|
4 | <style type="text/css">
|
---|
5 |
|
---|
6 | .spec
|
---|
7 | {
|
---|
8 | float:left;
|
---|
9 | width:80px;
|
---|
10 | height:20px;
|
---|
11 | position:relative;
|
---|
12 | border: 1px solid silver;
|
---|
13 | text-align : center;
|
---|
14 | }
|
---|
15 |
|
---|
16 | .desc
|
---|
17 | {
|
---|
18 | float:left;
|
---|
19 | width:360px;
|
---|
20 | height:20px;
|
---|
21 | position:relative;
|
---|
22 | border: 1px solid silver;
|
---|
23 | }
|
---|
24 |
|
---|
25 | </style>
|
---|
26 |
|
---|
27 | </head>
|
---|
28 |
|
---|
29 | <body>
|
---|
30 |
|
---|
31 | <div style="width:460px; position:relative;">
|
---|
32 | <h3><center>Do you want to change the Date Format for your site? It is possible, just follow the instructions.</h3>
|
---|
33 | </center><br>
|
---|
34 | <b>You need to switch some attributes.</b>
|
---|
35 | <br>
|
---|
36 | 1)To show a date in the Format: <b>Day.Month.YYYY</b>, input into the Short or Long Date Format <b>%d.%m.%Y</b>.
|
---|
37 | <br><br>
|
---|
38 | 2)To show a date and time - <b>Month/Day/Year Hours:Minutes:Seconds</b> input into the Long Date Format <b>%m/%d/%Y %H:%i:%s</b>.
|
---|
39 | <br><br>
|
---|
40 | 3)To use PM or AM format for time input - <b>%I%p:%i:%s</b>. You will see time in this format <b>09am:43:12</b>.
|
---|
41 | <br><br>
|
---|
42 | 4) you can use different types of separators: <br><br>
|
---|
43 | <center>
|
---|
44 | <table border=1>
|
---|
45 | <tr >
|
---|
46 | <td ><b>Separator</b></td>
|
---|
47 | <td><b>Format</b></td>
|
---|
48 | <td><b>Result</b></td>
|
---|
49 | </tr>
|
---|
50 | <tr align=center>
|
---|
51 | <td>.</td>
|
---|
52 | <td>Day.Month.YYYY</td>
|
---|
53 | <td>%d.%m.%Y</td>
|
---|
54 |
|
---|
55 | </tr>
|
---|
56 |
|
---|
57 | <tr align=center>
|
---|
58 | <td>/</td>
|
---|
59 | <td>Month/Day/Year</td>
|
---|
60 | <td>%m/%d/%Y</td>
|
---|
61 |
|
---|
62 | </tr>
|
---|
63 | <tr align=center>
|
---|
64 | <td>*</td>
|
---|
65 | <td>Month*Day*Year</td>
|
---|
66 | <td>%m*%d*%Y</td>
|
---|
67 |
|
---|
68 | </tr>
|
---|
69 |
|
---|
70 | <tr align=center>
|
---|
71 | <td colspan=3 >some other separators: - : ; -- </b></td>
|
---|
72 |
|
---|
73 | </tr>
|
---|
74 | </table>
|
---|
75 | </center>
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|
80 | <br>
|
---|
81 | <br>
|
---|
82 | <br>
|
---|
83 | <b>Use the list to form the date format on your liking.</b><br>
|
---|
84 |
|
---|
85 | <br>
|
---|
86 | <div class="spec">Specifier</div>
|
---|
87 | <div class="desc">Description</div>
|
---|
88 |
|
---|
89 | <div class="spec">%m</div>
|
---|
90 | <div class="desc">Month, numeric (01..12)</div>
|
---|
91 |
|
---|
92 | <div class="spec">%w</div>
|
---|
93 | <div class="desc">Day of the week (0=Sunday..6=Saturday)</div>
|
---|
94 |
|
---|
95 | <div class="spec">%d</div>
|
---|
96 | <div class="desc">Day of the month, numeric (00..31)</div>
|
---|
97 |
|
---|
98 | <div class="spec">%Y</div>
|
---|
99 | <div class="desc">Year, numeric, 4 digits</div>
|
---|
100 |
|
---|
101 | <div class="spec">%y</div>
|
---|
102 | <div class="desc">Year, numeric, 2 digits</div>
|
---|
103 |
|
---|
104 | <div class="spec">%b</div>
|
---|
105 | <div class="desc">Abbreviated month name (Jan..Dec)</div>
|
---|
106 |
|
---|
107 | <div class="spec">%H</div>
|
---|
108 | <div class="desc">Hour (00..23)</div>
|
---|
109 |
|
---|
110 | <div class="spec">%I</div>
|
---|
111 | <div class="desc">Hour (01..12)</div>
|
---|
112 |
|
---|
113 | <div class="spec">%p</div>
|
---|
114 | <div class="desc">AM or PM</div>
|
---|
115 |
|
---|
116 | <div class="spec">%i</div>
|
---|
117 | <div class="desc">Minutes, numeric (00..59)</div>
|
---|
118 |
|
---|
119 | <div class="spec">%s</div>
|
---|
120 | <div class="desc">Seconds (00..59)</div>
|
---|
121 | </div>
|
---|
122 |
|
---|
123 | </body>
|
---|
124 | </html> |
---|