Click to See Complete Forum and Search --> : how to get day and month in ASP


nagasea
03-04-2005, 03:09 PM
this seems a silly question.
how to show current day and month in ASP ?

newbie here... thanks

russell
03-04-2005, 06:47 PM
DatePart function

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctDatePart.asp

Dim mn

mn = DatePart("m", Date())

also see these functions
Day()
Month()
Year()
WeekDay()
WeekDayName()