| Titulo: how to find day from date and year |
|
Publicado: Tuesday 24 de March de 2026, 08:40
Article about how to find day from date and year: I am doing this to compare dates and find the differences in find day of year from date (and weekday) I am currently working on an application to find the day of year (1-366) of a specific date. I am doing this to compare dates and find the differences in time between them. However, I am currently having some problems. ENTER THE SITE When I set the date to December 31, it says that is day 361 or 362 (depending if leap year) and if I set it to October 31st it says it is day 302 but if I set it to November 1st it says it is day 311. I can't figure out where this error is coming from. Could you maybe point me in the right direction? And, how can I figure out which day of the week it is? This is my class to find the day of year (doy): I've just compared my program to a chart I found on the internet, and my dates are staggered. January, February and May are the only accurate months (in terms of total days) Thank you for the input, but I need to add the selected day to the previous dates. I can't add 29+the date if the month selected is February. So it has to be greater than that. And it will only trigger if it's a leap year. How to get month from date in sql server How to find day from date and year |
|
| Denunciar mensaje Citar |
|
Usuarios conectados |
| Tenemos 0 usuarios conectados. 0 invitados y 0 miembro/s: |
Pastor alemán|Bulldog|Bull terrier|Yorkshire|Boxer|San bernardo|Schnauzer|Golden Retriever|Doberman|Labrador Retriever