|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
returning longdate format
How do I obtain a longdate format in ASP?
The data that I'm returning from the database is stored as a longdate, but the recordset is returning the shortdate format. For example, "Friday, September 05, 2003" is returned as "9/5/2003". I need to be able to extract the name of the day from that string. I've thought about writing a DLL in order to take advantage of the intrinsic VB function "format", but the server where the application resides isn't mine, and they won't allow me to register a DLL on their box. |
|
#2
|
|||
|
|||
|
FormatDateTime(your_date, 1)
Hope this helps! Sincerely Vlince |
|
#3
|
|||
|
|||
|
Thanks. I'd looked at the formatdatetime function, but none of the books I have show that there can be a second argument.
|
|
#4
|
|||
|
|||
|
you can use
weekday and weekdayname function combination to get the week day name of the date
__________________
If you ask a question you are a fool for a second. But if you dont ask, you are a fool for a life time. |
|
#5
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > returning longdate format |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|