|
|
|
Попробуйте data.getMonth() 1 дек. 2004 года
|
|||
|---|---|---|---|
|
#18+
Сегодня утром отрабатываю такой код: data=new Date(); System.out.println(data.toString()); System.out.println(data.getMonth()); А вот результат: Wed Dec 01 08:19:30 MSK 2004 11 Месяц 11-й !!!!!!!!!! Вчера 30 октября тоже был 11. Кто знает в чем проблема? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.12.2004, 08:25 |
|
||
|
Попробуйте data.getMonth() 1 дек. 2004 года
|
|||
|---|---|---|---|
|
#18+
Поправка: вчера было 30 ноября. :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.12.2004, 08:27 |
|
||
|
Попробуйте data.getMonth() 1 дек. 2004 года
|
|||
|---|---|---|---|
|
#18+
во-первых: public int getMonth() Returns a number representing the month that contains or begins with the instant in time represented by this Date object. The value returned is between 0 and 11, with the value 0 representing January во-вторых, метод уже deprecated: Deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.MONTH). -- FUCK THE iNET!!! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.12.2004, 09:22 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=32806843&tid=2153346]: |
0ms |
get settings: |
5ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
38ms |
get topic data: |
6ms |
get forum data: |
1ms |
get page messages: |
25ms |
get tp. blocked users: |
1ms |
| others: | 189ms |
| total: | 278ms |

| 0 / 0 |
