카테고리 없음
javascript 입력받은 인자로 date 객체 생성
상문이
2024. 5. 14. 10:56
참조 : [자바스크립트] Date() 기본 사용 방법 (tistory.com)
[자바스크립트] Date() 기본 사용 방법
Date() 기본 사용 방법 Date 객체 생성 1 2 3 4 var date1 = new Date(); // 현재 날짜 및 시간 var date2 = new Date(1991,11,25,3,50); // 1991년 12월 25일 3:50:00 (월 +1 주의) var date3 = new Date('2014-6-4'); // 2002년 1월 1일 09:00:00
dororongju.tistory.com
참조 : javascript - Difference between Date(dateString) and new Date(dateString) - Stack Overflow
Difference between Date(dateString) and new Date(dateString)
I have some code that tries to parse a date string. When I do alert(Date("2010-08-17 12:09:36")); It properly parses the date and everything works fine but I can't call the methods associated wit...
stackoverflow.com