Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

HOW TO SET A JAVA FILE EXPIRY DATE ?

Contributor ,
Oct 17, 2024 Oct 17, 2024

 

I already have a java script, I want to add expiry date in it, how to do it. Please give me the code. and how to do it

 

TOPICS
Windows
2.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 18, 2024 Oct 18, 2024
quote
var today = new Date();
alert(today);

How to add this code??

 


By MJ ST

 

You would research how to work with dates with JavaScript, among a few other things.

 

Here is a working demo for you. It is not guaranteed to be fit for purpose or covered by warranty. Use at your own risk!

 

/*
Today's date: 2024-10-18
Expires tomorrow: 2024-10-19
*/

// Get today's date
var today = new Date();
var year = today.getFullYear().toString();
// Extract the month... Months are zero indexed, so add one!
var 
...
Translate
Adobe
Community Expert ,
Oct 21, 2024 Oct 21, 2024

Post your question in the Photoshop forum, then.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2024 Oct 21, 2024

@try67 

 

They did!  :]

 

Edit: since a moderator has merged the multiple posts, I have removed my link to the separate post which is now no longer separate!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 21, 2024 Oct 21, 2024

ok...I posted this in the Photoshop forums. my new post please reply

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/how-to-set-expiry-date-on-jsx-script-...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2024 Oct 21, 2024

[MOVED TO THE PHOTOSHOP DISCUSSIONS]


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 21, 2024 Oct 21, 2024

Sorry, I posted again and again. But please tell me the solution to this matter.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2024 Oct 21, 2024
LATEST
quote

Sorry, I posted again and again. But please tell me the solution to this matter.


By MJ ST


You were given it days ago, I'll mark it as the correct reply again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 21, 2024 Oct 21, 2024

Is there a way to set an expiration date on a JSX. file?
So that it cannot be opened after a certain time?

 

I already have a jsx photoshop using script, I want to add expiry date in it, how to do it. Please give me the code. and how to do it
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2024 Oct 21, 2024

Posting multiple times isn't helping:

 

<merged links removed>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 18, 2024 Oct 18, 2024

This is not Java and has nothing to do with writing an Android app.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 21, 2024 Oct 21, 2024

Cross posted here:

 

<merged link removed>

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 21, 2024 Oct 21, 2024

ok...I posted this in the Photoshop forums. my new post please reply

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/how-to-set-expiry-date-on-jsx-script-...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 21, 2024 Oct 21, 2024

Sorry, I posted again and again. But please tell me the solution to this matter.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines