Hi folks,
I want to check two dates. The date format [MMDDYYYY]. for e.g., 01252000 .
I want separate the day , month, and year into a integer. How can i do this?

Recommended Answers

All 2 Replies

Take the modulus 10000 of the date to get the year
Divide by 10000
Take the modulus 100 of what's left to get the day
Divide by 100
etc

Take the modulus 10000 of the date to get the year
Divide by 10000
Take the modulus 100 of what's left to get the day
Divide by 100
etc

Good Idea ! Thank You so much !!

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.