2012-12-18 2 views
0

나는이 슬리 커커를 설치 했으므로 잘 사용하고 있습니다.형식으로 슬립 틱커 날짜 문제

생각이다 : 나는 2012을 선택하면 내가 좋아하는 뭔가를 얻을, 올해의 선택에 문제가 : 일/월/

내가 2013을 선택하면 (112) 내가 얻을 수 있지만 : 일/mm/2013

이상합니다. 당신의 slimpicker.js이

// 달력에 표시 할 수있는 날짜

this.currentYear = this.calendarYear = this.current.getYear(); 
this.currentMonth = this.calendarMonth = this.current.getMonth(); 
this.currentDay = this.current.getDate(); 

아래와 같이 될 것의 코드에 대한

dayChars: 1, 
     monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], 
     dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], 
     daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], // Leap year is added later 
     format: 'mm/dd/yyyy',           // How the output looks after selection 
     yearStart: (new Date().getFullYear()),      // Default starting year for dropdown options is 5 years ago 
     yearRange: 10,             // Show a 10 year span 
     yearOrder: 'asc',            // Counting up in years 
     startDay: 7      // 1 = week starts on Monday, 7 = week starts on Sunday 
    }, 
+0

값을 읽고 잘못된 결과를 얻는 곳에 코드를 게시 할 수 있습니까? –

+0

코드에서 확인하십시오. http://jsfiddle.net/oamiamgod/5DvfC/ – OammieR

+0

예 .. 죄송합니다 .. 그래도 고마워. – ossial

답변

2

검색 : 이는 JS에 대한 데이터입니다 아래와 같이 변경하십시오

// 캘린더에 표시 할 날짜

this.currentYear = this.calendarYear = this.current.getFullYear(); 
this.currentMonth = this.calendarMonth = this.current.getMonth(); 
this.currentDay = this.current.getDate();