• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1691
  • Last Modified:

DoDateTime format

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
MaximusMeridus
Asked:
MaximusMeridus
  • 2
1 Solution
 
j2nkuCommented:
<%
outvar = DoDateTime((Bulletin.Fields.Item("EventDateTime").Value), 1, 1033)
Response.Write(left(outvar,len(outvar)-6))
%>
0
 
neeraj523Commented:

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
 
MaximusMeridusAuthor Commented:
Thanks!
0
 
MaximusMeridusAuthor Commented:
Sorry one last thing..

How do I convert

Tuesday, August 24

to

Tuesday, 24th August
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now