DateFormat Function (Full Version)

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



Message


hessfirm -> DateFormat Function (9/28/2009 10:15:28)

Any idea how to get this function to return a 2 digit year versus 4?

Function DateFormat2(dt2)
DateFormat2 = left("00",2-len(month(dt2)))&month(dt2)&"/"&left("00",2-len(day(dt2)))&day(dt2)& "/"&year(dt2)
End Function


Thanks!




Spooky -> RE: DateFormat Function (9/29/2009 3:11:53)


right(year(dt2),2)




hessfirm -> RE: DateFormat Function (9/29/2009 10:39:04)

Can always count on this site for solid answers fast! Thanks Spooky!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875