Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Needing an event fired when a row is added on a datagridview 4 36
Tool Box 2 34
consuming an asmx web service in winforms application 3 24
Split in Javascript 5 31
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now