반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- pwa
- popup
- Eclipse
- NextJS
- mysql
- FCM
- Maven
- MariaDB
- centos7
- jquery
- jenkins
- mybatis
- spring3
- node.js
- Tomcat
- javascript
- git
- nodejs
- security
- Next.js
- config
- docker
- Java
- SpringBoot
- yona
- rocky9
- MSsql
- PM2
- ajax
- Push
Archives
- Today
- Total
목록date (2)
종이 한장 차이...
nodejs OR nextjs 에서의 new Date 사용시 참고.
날짜 비교를 해서 기준 일시보다 클 경우 예외 처리를 하는 로직을 만들었다.아래와 같다. // 현재 날짜 및 시간 가져오기 const currentDateTime = new Date(); // 쿼리 실행 const selectResult = await pool.request() .query(query); const qrlimitdate = selectResult.recordset[0].di_qr_limit_date; //날짜 및 시간 비교하여 체크후 제한시간보다 초과면 예외처리. console.log("currentDateTime:",currentDateTime,",qrlimitdate:",qrlimitd..
node.js
2024. 9. 4. 15:18