Solved

getting a date format in format "Fri, Apr 4 2014" or "Fri, 4 Apr 2014"

Posted on 2014-04-02
2
552 Views
Last Modified: 2014-04-02
I would want to get a date format in format "Fri, Apr 4 2014" or "Fri, 4 Apr 2014", but I have no idea where to start. I am using VB.NET

Thank you

Anthony
0
Comment
Question by:Anthony Matovu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
jayakrishnabh earned 250 total points
ID: 39974163
Dim dt As DateTime = DateTime.Now
Dim str1 As String = dt.ToString("ddd, MMM dd yyyy")
or
Dim str2 As String = dt.ToString("ddd, dd MMM yyyy")
0
 
LVL 39

Assisted Solution

by:Pratima Pharande
Pratima Pharande earned 250 total points
ID: 39974166
try this

 Response.Write(DateTime.Now.ToString("D"))

For more fromats rfer this

http://www.4guysfromrolla.com/articles/111010-1.aspx
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question