LibreOfficeDev 7.4 Help
λ¬Έμμ΄ μμμ μ§μ ν 맨 μΌμͺ½ λ¬Έμμ κ°μλ₯Ό ꡬν©λλ€.
Left (Text As String, n As Integer)
String
Text: 맨 μΌμͺ½ λ¬Έμλ₯Ό νμν μμμ λ¬Έμμ΄ μμ λλ€.
n: Numeric expression that specifies the number of characters that you want to return. If n = 0, a zero-length string is returned. The maximum allowed value is 2,147,483,648.
λ€μμ YYYY.MM.DD μμμ λ μ§λ₯Ό MM/DD/YYYY μμμΌλ‘ λ³ννλ μμ λλ€.
Sub ExampleUSDate
Dim sInput As String
Dim sUS_date As String
sInput = InputBox("Please input a date in the international format 'YYYY-MM-DD'")
sUS_date = Mid(sInput, 6, 2)
sUS_date = sUS_date & "/"
sUS_date = sUS_date & Right(sInput, 2)
sUS_date = sUS_date & "/"
sUS_date = sUS_date & Left(sInput, 4)
MsgBox sUS_date
End Sub