DatePart returning wrong year (Full Version)

All Forums >> [Web Development] >> ASP, PHP, and Database



Message


dzirkelb1 -> DatePart returning wrong year (6/22/2009 16:55:29)

intFirstYear = DatePart("y", Date())

It is returning 173 for the year, what is wrong with it?




swoosh -> RE: DatePart returning wrong year (6/22/2009 17:03:09)

Isn't "y" for day of year?




dzirkelb1 -> RE: DatePart returning wrong year (6/22/2009 17:15:15)

ya, dumb error, thanks...changed it to yyyy and it works




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875