Date Statement

ํ˜„์žฌ ์‹œ์Šคํ…œ ๋‚ ์งœ๋ฅผ ๋ฌธ์ž์—ด๋กœ ํ‘œ์‹œํ•˜๊ฑฐ๋‚˜ ๋‚ ์งœ๋ฅผ ๋‹ค์‹œ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ๋‚ ์งœ ํ˜•์‹์€ ๋กœ์ปฌ ์‹œ์Šคํ…œ ์„ค์ •์— ๋”ฐ๋ผ ๋‹ค๋ฆ…๋‹ˆ๋‹ค.

๊ตฌ๋ฌธ:

Date ; Date = Text As String

๋งค๊ฐœ ๋ณ€์ˆ˜:

Text: ์‹œ์Šคํ…œ ๋‚ ์งœ๋ฅผ ๋‹ค์‹œ ์„ค์ •ํ•  ๊ฒฝ์šฐ์—๋งŒ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ฒฝ์šฐ ๋ฌธ์ž์—ด ์‹์€ ๋กœ์ปฌ ์„ค์ •์— ์ง€์ •๋œ ๋‚ ์งœ ํ˜•์‹๊ณผ ์ผ์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ:

Sub ExampleDate

    msgbox "ํ˜„์žฌ ๋‚ ์งœ: " & Date

End Sub