Hello community
I’m new at using Studio X and I’m trying to use the option of sending an email with outlook capturing the current date the Subject line and current time in the body. The date has be in “mm/dd/yyyy” format and time has be in “hh:MM:ss PM” format.
I am unable to convert the date and time to the required format .Unable to include the date in the Subject line as well.
Can anyone pls help me out on this ? Thank you.
Use the “Get Current Date/Time” activity to retrieve the current date and time.
Format Date:
After getting the current date, use the “Format Date” activity to format it in the “mm/dd/yyyy” format. Set the input date to the date you obtained in the previous step, and set the output format to “MM/dd/yyyy”. This will give you the formatted date.
Format Time:
Similarly, use the “Format Date/Time” activity to format the current time in the “hh:MM:ss tt” format. Set the input date/time to the current time, and set the output format to “hh:mm:ss tt”. This will give you the formatted time in the desired format.
Compose Email:
Now, use the “Compose Email” activity to create your email.
For the subject, you can directly enter your subject line text and include the placeholders for the formatted date and time. For example: “Report for {{FormattedDate}} - {{FormattedTime}}”.
For the body, enter your text and again use the placeholders for the formatted date and time. For example: “Hello, here’s the report for {{FormattedDate}} at {{FormattedTime}}.”
Send Email:
Finally, use the “Send Email” activity to send the composed email.
Get Current Date/Time → Format Date → Format Time → Compose Email → Send Email