앞 단에서 그누보드 달력을 통해 $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]
게시글 목록
| 번호 | 제목 |
|---|---|
| 34021 | |
| 33994 | |
| 33922 | |
| 33895 | |
| 33889 | |
| 33882 | |
| 33868 |
최신글
최신글 함수 개량
11
|
| 33863 | |
| 33859 | |
| 33857 | |
| 33849 | |
| 33842 | |
| 33835 | |
| 33830 | |
| 33828 | |
| 33807 | |
| 33797 | |
| 33796 | |
| 33791 | |
| 33786 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기