How to add days in current date for mysql

ankitbat

Member
Hello Team,

I want to give 10 days free trial to my software to the user who made the payment of some amount in Razorpay. But I am not getting how to add 10 days in local date variable kindly help me on that.
 
P

Pabblymember11

Guest
Hey @ankitbat

Could you kindly provide the URL of the workflow in which you attempted the same process? This will allow us to assess the feasibility of replicating the action within that specific workflow.
 

ankitbat

Member
Here is the link of my workflow


I want to insert the value into mysql but my date is showing current date but I want to add current date + 10 days.
 
P

Pabblymember11

Guest
To address your concern effectively, the Date Time Formatter action step provides a solution by allowing you to effortlessly add a period of 10 days to the current date.

2023-11-22_16h47_23.png
 

ankitbat

Member
Hello, Thanks for the help. It is working properly into my system now.

But I have another issue kindly suggest for that too.

Problem Statement : I have a pabbly workflow where I want to generate the password based on the email address let say if the email address is [email protected] I want the password to be abc@1234 suggest how to achieve it.
 
P

Pabblymember11

Guest
Utilizing the Code action step along with JavaScript code enables you to accomplish the desired outcome. Please consult the provided screenshot for reference on how to proceed.

2023-11-22_17h41_34.png



function generatePasswordFromEmail(email) {
// Extracting the username part from the email address
const username = email.split('@')[0];

// Generating the password by appending '@1234' to the username
const password = `${username}@1234`;

return password;
}

// Example usage:
const emailAddress = '[email protected]';
const generatedPassword = generatePasswordFromEmail(emailAddress);
return(`${generatedPassword}`);
 
Top