Request "datetime"

Balises:

Hi,

How to request the datetime of the computer? And we would like to know how to return a integer value without quotes: for example, for the month, instead value "05", we would like 5 and without quotes.

Thanks a lot!
Xavier C.A.

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/

Hey,

how about something like

n = REQUEST ( "DateTime" , "%x" , your_datetime )
PRINT your_datetime

?

Deleting the `0` in 05 ... hmm, i think, you have to do that manually by using SPLIT(), SUBSTR() and so on, if the month is smaller than 10.

Hi Martin!

Thanks a lot! I will try it later :-D

Best Regards,
Xavier C.A.

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/


https://campus.allplan.com/ utilise des cookies  -  Plus d'informations

Accepter