extjs 날짜 포맷 상세

2298 단어 EXTJ#F#
자세히 보기
Format  Output      Description

------ ---------- -------------------------------------------------------------- d 10 Day of the month, 2 digits with leading zeros D Wed A textual representation of a day, three letters j 10 Day of the month without leading zeros l Wednesday A full textual representation of the day of the week S th English ordinal day of month suffix, 2 chars (use with j) w 3 Numeric representation of the day of the week z 9 The julian date, or day of the year (0-365) W 01 ISO-8601 2-digit week number of year, weeks starting on Monday (00-52) F January A full textual representation of the month m 01 Numeric representation of a month, with leading zeros M Jan Month name abbreviation, three letters n 1 Numeric representation of a month, without leading zeros t 31 Number of days in the given month L 0 Whether it's a leap year (1 if it is a leap year, else 0) Y 2007 A full numeric representation of a year, 4 digits y 07 A two digit representation of a year a pm Lowercase Ante meridiem and Post meridiem A PM Uppercase Ante meridiem and Post meridiem g 3 12-hour format of an hour without leading zeros G 15 24-hour format of an hour without leading zeros h 03 12-hour format of an hour with leading zeros H 15 24-hour format of an hour with leading zeros i 05 Minutes with leading zeros s 01 Seconds,with leading zeros O -0600 Difference to Greenwich time(GMT) in hours T CST Timezone setting of the machine running the code Z -21600 Timezone offset in seconds(negative if west of UTC,positive if east) 예: 현재 시간은 초 var date = new Date()로 정확합니다.dateFormat('Y-m-d H:i:s');xtype: "datefield"값을 가져오면 가져온 값을 가져옵니다.dateFormat('Y-m-d H:i:s'); 이렇게 하면 데이터베이스에 삽입할 수 있다.
예를 들어, alert(clientInfoEditForm.findById)(intDateChange1).getValue().dateFormat("Y-m-d H:i:s"));
Ext.onReady(function() { var v1 = "welcome to zhongtian !"; var win = new Ext. Window ({title:'사용자 기본 정보',width:400,height:260,layout:'form', xtype:'form',//기본 왼쪽 정렬///labelAlign:'right', labelWidth:60, items:[{xtype:'hidden','name:'id'}, {xtype:'datefield','fieldLabel:'출생일',name:'birthday','fomat:'Y-m-d'})}) win 1.show(); })

좋은 웹페이지 즐겨찾기