Solved

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

Posted on 2014-04-02
2
548 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
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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