Added common date utils for javascript