Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 28, 2025 09:45 AM
DATETIME_DIFF(
TODAY(),
{Fecha de nacimiento},
"years"
)
& " años, "
& (DATETIME_DIFF(
TODAY(),
{Fecha de nacimiento},
"months"
) -
DATETIME_DIFF(
TODAY(),
{Fecha de nacimiento},
"years"
) * 12
)
& " meses"
como hago para que en vez de contar hasta hoy, se cuente hasta una fecha exacta?
1 Reply 1
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 28, 2025 01:04 PM
Simplemente reemplace TODAY() con la fecha deseada usando DATE_TIME_PARSE para las 3 instancias de TODAY(), (Google Translate 🙂
Just replace Today () with the desired date using DATE_TIME_PARSE for all 3 instances of TODAY(), e.g.
DATETIME_DIFF(
DATETIME_PARSE("2025-01-28"), // Replace with your target date
{Fecha de nacimiento},
"years"
)
etc.
Reply
