Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

set date then back again

Featured Replies

how can i set the date to 01\01\03 then back to the date its sposed 2 be? (like todays date or whatever)

thanks :)


  • Author

yes i know, but how do i "keep" todays date? maybe as a variable? so i can set it back

Yes you can but have to strip out the Weekday

date /t>DateNow.txt

Returns Thu 11/25/2004

Or do it in a variable

To get the todays date as a file, you can use this,

echo %DATE:~0,10% > c:\DATENOW.txt

Then you'll get today's date as a file.

And when you want the date BACK again,

simply do

DATE < c:\DATENOW.txt

This works for me!

If you only want the YEAR,

echo %DATE:~0,4%

If you only want the MONTH,

%DATE:~5,2%

If you only want the DAY,

echo %DATE:~8,3%

Change the parameters to fit your needs!

  • Author

ill give this a try, thanks :D

  • Author

i cant get it 2 import the date again :s your command isnt working 4 me

it complains about the date format

  • Author

double post

Here's an example...

@echo off
set realdate=%date:~4%
date 01/01/03
date /t
date %realdate%
date /t

  • Author

awesome man :D that works. thanks :D

whmm, I wonder why it didin't work for you.

But I guess nakira's way is a lot easier and doesn't fiddle around with making files.

My way is another way but can work for other other batch files other than the one it made. Although, I don't think a DATE stuff would e needed any longer than 24 hours! Try it for the TIME method if one needs it. GreenMachine @ EXCREATE forum is better at handling those kinds of things so ask him when he's got time.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.