You could probably be more specific, but ontop of my head now it would be treat your date process var as type long because then you can do your conversions to Date on both the Java side (your fact model, script expressions, etc) as well as your web-form side (via Javascript for example)
Hope this helps.