앞 단에서 그누보드 달력을 통해 $svc_bsn 을 문자열로 받을경우
20131102 에서 2013-11-02 형태로 바꾸고 한달 더하는 패턴
echo $originalDate = $svc_bsn;
echo '<br>';
echo $newDate = date("Y-m-d", strtotime($originalDate));
echo $time = strtotime($newDate);
echo $final = date("Y-m-d", strtotime("+1 month", $time));
20131102 에서 2013-11-02 형태로 바꾸고 한달 더하는 패턴
echo $originalDate = $svc_bsn;
echo '<br>';
echo $newDate = date("Y-m-d", strtotime($originalDate));
echo $time = strtotime($newDate);
echo $final = date("Y-m-d", strtotime("+1 month", $time));
댓글 3개
[code]
//앞 단에서 그누보드 달력을 통해 $svc_bsn 을 문자열로 받을경우
//20131102 에서 2013-11-02 형태로 바꾸고 한달 더하는 패턴
echo $originalDate = $svc_bsn;
echo '<br>';
echo $newDate = date("Y-m-d", strtotime($originalDate));
echo $time = strtotime($newDate);
echo $final = date("Y-m-d", strtotime("+1 month", $time));
[/code]
//앞 단에서 그누보드 달력을 통해 $svc_bsn 을 문자열로 받을경우
//20131102 에서 2013-11-02 형태로 바꾸고 한달 더하는 패턴
echo $originalDate = $svc_bsn;
echo '<br>';
echo $newDate = date("Y-m-d", strtotime($originalDate));
echo $time = strtotime($newDate);
echo $final = date("Y-m-d", strtotime("+1 month", $time));
[/code]
게시글 목록
| 번호 | 제목 |
|---|---|
| 34292 | |
| 34279 | |
| 34278 | |
| 34264 | |
| 34251 | |
| 34231 | |
| 34196 | |
| 34184 | |
| 34166 | |
| 34151 | |
| 34143 | |
| 34142 | |
| 34134 | |
| 34132 | |
| 34131 | |
| 34125 | |
| 34093 | |
| 34076 | |
| 34060 | |
| 34031 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기