nnCron DATE variable formatting

nnCron and nnCron LITE discussion

nnCron DATE variable formatting

Postby LuckMan212 » Wed, 06 Jul 2005, 10:26

hello,

I would like to know, how can I populate a nnCron variable with the current date in YYMMDD format (2-digit year, padded zeros, no spaces)

example,
Code: Select all
050706


or better yet, is there a way to create a variable using CUR-DATE and then display it or output it in various formats, for example, can I have a single variable such as %myDate% and show 3 message boxes
Code: Select all
1)  050706
2)  2005 Jul 6
3)  7/6/2005


I read the documentation and could not find sufficient info.
thank you!
LuckMan212
 
Posts: 133
Joined: Mon, 04 Jul 2005, 11:19

Postby VK » Wed, 06 Jul 2005, 12:08

See:
http://www.nncron.ru/help/EN/working/bu ... iables.htm
http://www.nncron.ru/help/EN/commands/date_time.htm

Code: Select all
#( test_date_convert
NoActive
Action:
    MSG: "%YY%%MM%%DD% - %YYYY% %MMM% %Day@% - %Mon@%/%Day@%/%YYYY%"
)#
CU
VK
User avatar
VK
 
Posts: 680
Joined: Wed, 14 Jul 2004, 19:17

Postby LuckMan212 » Wed, 06 Jul 2005, 12:14

ahh this is great, just what I needed thank you!! :D
LuckMan212
 
Posts: 133
Joined: Mon, 04 Jul 2005, 11:19


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 2 guests