Skip to content

Fecha actual, semana actual, año actual

January 19, 2012

Devuelve  número de semana actual:
DatePart(DateInterval.WeekOfYear, Now, FirstDayOfWeek.Monday, FirstWeekOfYear.FirstFullWeek)

Devuelve  fecha actual:
DatePart(DateInterval.Day, Now) & “/” & DatePart(DateInterval.Month, Now) & “/” & DatePart(DateInterval.Year, Now)

Devuelve el año actual:
DatePart(DateInterval.Year, Now)


From → Fechas

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: