ClubEspace.com
05 de Abril de 2026, 19:38 *
Bienvenido(a), Visitante. Por favor, ingresa o regístrate.
¿Perdiste tu email de activación?

Ingresar con nombre de usuario, contraseña y duración de la sesión
Noticias: Buenas, aquí admin.
Desde la Junta del Club Espace os pedimos a todos los usuarios registrados en nuestro foro que accedais a vuestra zona personal y elimineis aquellos mensajes personales que ya no son de utilidad. Estamos tratando de limpiar y mejorar el foro. Gracias por vuestra colaboración.
 
   Inicio   Ayuda Buscar Ingresar Registrarse  
Páginas: [1]   Ir Abajo
  Imprimir  
Autor Tema: How to find day from date and year  (Leído 9 veces)
0 Usuarios y 1 Visitante están viendo este tema.
evasingle
Forero de Honor
*****
Desconectado Desconectado

Mensajes: 489


Email
« : 17 de Marzo de 2026, 21:44 »

Hello, Guest!

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.

Click here for How to find day from date and year


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 find day from date and year


How to get month from date in sql server


En línea
Páginas: [1]   Ir Arriba
  Imprimir  
 
Ir a:  

Impulsado por MySQL Impulsado por PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines XHTML 1.0 válido! CSS válido!