There are several functions to manipulate dates in asp.<br>try this: <br><br>Dim dDate<br>dDate = CDate(the data from your database)<br><br>Year(dDate) 'returns the year of <date>: 2000<br>Month(dDate) 'returns the month of <date>: 8<br>Day(dDate) 'returns the dat of <date>: 1<br><br>I would write a function that would do all of these things, especially if you want the day and month in string format.<br> <p>ray<br><a href=mailto:rheindl@bju.edu>rheindl@bju.edu</a><br><a href= > </a><br>
What type of Database are you using? If it is SQL Server, use the CONVERT function to convert the date into the format you want.<br><br>See Books Online for more info on CONVERT.<br><br>You will probably want to use the style 106 which will convert to "dd mon yy"<br><br>Most DBMS's will provide their own alternative to SQL's Convert so if you are using Oracle, check OraDoc.<br><br>If this option isn't available to you, then your best bet would be to parse it yourself. <p> Jeff Friestman<br><a href=mailto: jfriestman@hotmail.com> jfriestman@hotmail.com</a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.