/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/fundamentals/runtime-libraries/snippets/System/String/Format/vb/qa-interpolated2.vb
14 строк
611 B
Genevieve Warren
Move member remarks (#39270)
30 янв 2024, 00:43
Не верифицирован
30 янв 2024, 00:43
6c88824
Код
Авторство
О чём код?
Module Example13 Public Sub Main() Dim names = {"Balto", "Vanya", "Dakota", "Samuel", "Koani", "Yiska", "Yuma"} Dim output = $"{names(0)}, {names(1)}, {names(2)}, {names(3)}, {names(4)}, " + $"{names(5)}, {names(6)}" Dim dat = DateTime.Now output += $"{vbCrLf}It is {dat:t} on {dat:d}. The day of the week is {dat.DayOfWeek}." Console.WriteLine(output) End Sub End Module ' The example displays the following output: ' Balto, Vanya, Dakota, Samuel, Koani, Yiska, Yuma ' It is 10:29 AM on 1/8/2018. The day of the week is Monday.