____________________________________________________ The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-2924
the faq shows methods of breaking a date up and reassembling it, search google for "FormatDate Function"
it's built in to VB 5/6 and has ALOT of date display and modification functionalities even down to spitting out the text based representation of a date (Monday, June 15, 1999) etc ..
DreXor
Please read the FAQ again. I've included every possibility including the FormatDate Function
<src FAQ>
second method is the FormatDateTime function
many VBers will know this function well, but overlooked many times in vbscript/ASP
example:
Dim curDate
curDate = Now()
Response.Write "vbGeneralDate - " & FormatDateTime(curDate, vbGeneralDate) & "<BR>"
Response.Write "vbLongDate - " & FormatDateTime(curDate, vbLongDate) & "<BR>"
Response.Write "vbShortDate - " & FormatDateTime(curDate, vbShortDate) & "<BR>"
Response.Write "vbLongTime - " & FormatDateTime(curDate, vbLongTime) & "<BR>"
Response.Write "vbShortTime - " & FormatDateTime(curDate, vbShortTime) & "<BR>"
____________________________________________________ The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-2924
well, alright I'll make it clear on the FormatDate!!! function
____________________________________________________ The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-2924
.......
then you need to format your date with a bit of intervention
eg: right() function and rebuild the date
MyYear = right(Year(Date()),2)
____________________________________________________ The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-2924
____________________________________________________ The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-2924
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.