Solved

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

Posted on 2014-04-02
2
541 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
Comment Utility
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
Comment Utility
try this

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

For more fromats rfer this

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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.…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

17 Experts available now in Live!

Get 1:1 Help Now