Hi friends i want to format a datetime column like
4-mar-10 9:15 pm

Dim myDate As DateTime = DateTime.Now
        Dim dateFormat As String = "d-MMM-yy h:mm tt"
        Console.WriteLine(myDate.ToString(dateFormat).ToLower())

Output: 11-mar-10 10:13 am

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.