Solved

DoDateTime format

Posted on 2004-07-30
4
1,649 Views
Last Modified: 2010-05-18
Hi there,

How do I format the following

<%= DoDateTime((Bulletin.Fields.Item("EventDateTime").Value), 1, 1033) %>

Tuesday, August 24, 2004

into

Tuesday, August 24


Many thanks

MM
0
Comment
Question by:MaximusMeridus
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
j2nku earned 500 total points
ID: 11675821
<%
outvar = DoDateTime((Bulletin.Fields.Item("EventDateTime").Value), 1, 1033)
Response.Write(left(outvar,len(outvar)-6))
%>
0
 
LVL 22

Expert Comment

by:neeraj523
ID: 11675883

you can do it like this also..

<%
itemDate = Bulletin.Fields.Item("EventDateTime").Value
itemDate = Left(WeekDayName(WeekDay(itemDate)),3) & ", " & MonthName(Month(itmeDate)) & " " & Right("00" & Day(itemDate),2)
%>

neeraj523
0
 
LVL 1

Author Comment

by:MaximusMeridus
ID: 11675974
Thanks!
0
 
LVL 1

Author Comment

by:MaximusMeridus
ID: 11676001
Sorry one last thing..

How do I convert

Tuesday, August 24

to

Tuesday, 24th August
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 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

15 Experts available now in Live!

Get 1:1 Help Now