Hey guys i need to make app that sends mail... so i want in subject to make text like "Report - dd/mm/yyyy - hour:minutes" do you have any idea how should i make that? :/

Use.

dim msg as String="Report - "+Now.ToShortDateString + "-"+Now.Hour.ToString+":"+Now.minutes.Tostring

Thank you ;) works :)

Dim sDate As String = Date.Now.ToString("dd/MM/yyyy - hh:mm tt")
        MsgBox(sDate)

Please mark as solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.