Sign in to follow this  
Followers 0
krishpun

Date and Time

4 posts in this topic

I need to create a file with the file name as system date and time

For example: If system date is in the format(dd/mm/yyyy hh:mm:ss), i need to create the file "ddmmyyhhmmss" dynamically

Please let me know how can I do this.

I have been trying with date functions, and converting them to string etc.... but still no luck.

Please help.

regards,

Krishna

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Try this:

$var=@MDAY&@MON&@YEAR&@HOUR6@MIN&@SEC
ConsoleWrite($var & @CRLF)

It should work the way you asked.

Edited by r3dbull

Share this post


Link to post
Share on other sites

Thanks a lot, it works fine now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0