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? :/

Recommended Answers

Use.

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

All 4 Replies

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.