calculate number of working days on a rails form
Posted
by ash34
on Stack Overflow
See other posts from Stack Overflow
or by ash34
Published on 2010-04-30T18:47:12Z
Indexed on
2010/04/30
20:47 UTC
Read the original article
Hit count: 479
I have two fields, 'from_date' and 'to_date' on my rails form. When a user enters the dates I have to display the number of working days i.e, exclude (sat, sun and a list of other official holidays in a database table).
Is this something that should be done in the client side javascript Or is this something that should be done by making an ajax request to rails.
Can you tell me how I can accomplish this.
thanks much.
© Stack Overflow or respective owner