Jump to content
Sign in to follow this  
krishpun

Date and Time

Recommended Posts

krishpun

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
r3dbull

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
krishpun

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.