please if someone can help me i have probleams in the constructor of the class, how can i pass parameters to date constructor.....

I recommend you to use the SimpleDateFormat class. It is easier than calculating milliseconds. With it you can define the format you are going to use (yymmmdd, ddmmyyyy,etc) and then just call the parse method.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.