Hi,
You can follow these steps.
Using ASP
Code:
Dim strDate
strDate = Year(Date()) & "-" & Month(Date()) & "-" & Day(Date())
Response.write strDate
While retrieving from database (SQL server)
Code:
Select Convert(varchar(10),DATE_COLUMN,121)
Hope that helps.
Cheers!
_________________________
- Vijay G
Strive for Perfection