Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

dateformat expire problem

Explorer ,
Oct 31, 2008 Oct 31, 2008
here is the code i have but if i take this out of the page it works fine... for some reason it does not like the +90... where am i going wrong?



please help




TOPICS
Getting started
335
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 31, 2008 Oct 31, 2008
I assume you are trying to add 90 days to that date? If you are, try this:

dateFormat("10/07/2008"+90,"mm/dd/yyyy") Basically, add the double quotes around the date.

I would suggest though that you use the dateAdd() function to do this. Something like:

dateAdd("d",90,"10/07/2008")

Hope this helps!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 31, 2008 Oct 31, 2008
LATEST
dateformat returns a string. if Passwordexpire.datecreated is a date object, you have a logic problem in that you are attempting to compare a date to a string.

If PasswordExpire.datecreated is a string, you have chosen a dateformat that will likely give you undesired results.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources