Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: date help  (Read 3387 times)

0 Members and 1 Guest are viewing this topic.

strike

  • Guest
date help
« on: April 18, 2007, 02:07:36 PM »
Hiya,

Writing a batch file and need to get system date into a variable (if possible) then use the variable later on. Need the date in YYYYMMDD format

cheers in advance.

WillyW



    Specialist
  • Thanked: 29
  • Experience: Experienced
  • OS: Windows XP
Re: date help
« Reply #1 on: April 18, 2007, 02:45:38 PM »
Hiya,

Writing a batch file and need to get system date into a variable (if possible) then use the variable later on. Need the date in YYYYMMDD format

cheers in advance.

Check out:
http://www.computerhope.com/forum/index.php/topic,33232.msg200118.html#msg200118


http://www.computerhope.com/forum/index.php/topic,32941.msg198361.html#msg198361


That method works.

If you are using WinXP,  you can do it without that method,  just using XP.    Others here can explain that method better than I.    Somebody else will be along soon with that, I'm sure.   :)

I hope this helps.




.



strike

  • Guest
Re: date help
« Reply #2 on: April 18, 2007, 03:20:12 PM »
cheers FDATE does not exist any more  :( so any help with the XP method anybody would be great.

cheers

WillyW



    Specialist
  • Thanked: 29
  • Experience: Experienced
  • OS: Windows XP
Re: date help
« Reply #3 on: April 18, 2007, 03:26:51 PM »
cheers FDATE does not exist any more  :( so any help with the XP method anybody would be great.

cheers

That is why I attached it to that post.   You can download it here.

.



strike

  • Guest
Re: date help
« Reply #4 on: April 18, 2007, 04:07:13 PM »
Cheers! FDATE works a treat and now my batch file works a treat!
 :D

WillyW



    Specialist
  • Thanked: 29
  • Experience: Experienced
  • OS: Windows XP
Re: date help
« Reply #5 on: April 18, 2007, 04:41:16 PM »
Cheers! FDATE works a treat and now my batch file works a treat!
 :D

Great!        Glad you got the results you were looking for.    :)

And thanks for letting us know you succeeded too.

.