Using some of dreamweaver, part custom.
I'm trying to calc a date range and when I go to format and truncate it I get an error type mismatch formatnumber.
If I run it without the format it works.
<% = ((now() - (test.fields.item("date").value))/30) %>
This works outputs 10.28382726123
This is what I was trying.
<% months = ((now() - (test.fields.item("date").value))/30) %>
<% =formatnumber((months), 0,-2, -2, -2) %>
I just want 10.
thanks,
I'm trying to calc a date range and when I go to format and truncate it I get an error type mismatch formatnumber.
If I run it without the format it works.
<% = ((now() - (test.fields.item("date").value))/30) %>
This works outputs 10.28382726123
This is what I was trying.
<% months = ((now() - (test.fields.item("date").value))/30) %>
<% =formatnumber((months), 0,-2, -2, -2) %>
I just want 10.
thanks,