To check date Validity
Version 1.0.0.0 (1,38 ko) par
Cavin Dsouza
The program checks whether a date entered in DD/MM/YYYY format is a valid one or not.
The program checks whether a date entered in DD/MM/YYYY format is a valid one or not.
Test for Leap Year Corrections Made:
Pseudocode to determine whether a year is a leap year or not:
if year is divisible by 400 then is_leap_year
else if year is divisible by 100 then not_leap_year
else if year is divisible by 4 then is_leap_year
else not_leap_year
Citation pour cette source
Cavin Dsouza (2024). To check date Validity (https://www.mathworks.com/matlabcentral/fileexchange/44526-to-check-date-validity), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Créé avec
R2008a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Language Fundamentals > Data Types > Dates and Time >
- MATLAB > Language Fundamentals > Data Types > Dates and Time > Calendar >
En savoir plus sur Dates and Time dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |