[thelist] ASP: Modify FormatDateTime()
Daniel Frey
danieljohnfrey at yahoo.com
Fri Mar 14 11:16:03 CST 2003
> Hey everyone,
>
> I'm showing the date of something on my site like:
>
> FormatDateTime(dt,1)
>
> with "dt" being a date value pulled from my database. Is there a way to
> make it show "Thu" instead of "Thursday" and "Mar" instead of "March"?
I'm
> working with a tight space, and would like to cut down on the unnecessary
> characters.
---
What you're looking for is MonthName - it takes two values, the numeric
month, and the optional abbreviate parameter. So, something like
response.write MonthName(1, true) would return "Jan".
HTH,
Dan
More information about the thelist
mailing list