initial commit of date mode
added the batching code for date mode