Skip to content

Commit

Permalink
feat: 생일 문자열 변환 구현 (TeamNADA#448)
Browse files Browse the repository at this point in the history
- MM월 dd일 형식.
  • Loading branch information
hyun99999 committed Apr 21, 2023
1 parent e3931d9 commit 608900c
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,26 @@ extension SelectBirthBottomSheetViewController {
])
}

private func setBirth(month: String, day: String) -> String {
var birth: String = ""

if month.count == 2 {
birth.append("0\(month)")
} else {
birth.append(month)
}

birth.append(" ")

if day.count == 2 {
birth.append("0\(day)")
} else {
birth.append(day)
}

return birth
}

// MARK: - @objc Methods

@objc func dismissToCardCreationViewController() {
Expand Down

0 comments on commit 608900c

Please sign in to comment.