KB-33057: Retrieving individual data on date and time.

Question:

How can I get individual data about the current date (day, month, year, hour, minute and second)?

Solution:

To do so, you can use now command, which returns the current moment with date and time in a variable of subtype datetime. Since you want to get each value individually, you must use day, month, year, hour, minute and second functions . For example:

dtnow = Now
day = Day(dtnow)

month = Month(dtnow)
year = Year(dtnow)
hour = Hour(dtnow)
minute = Minute(dtnow)
second = Second(dtnow)

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *