i need how to find recent financial year create work flow kindly share the work flow i was very need full our automation task
→ Assign Current Date using below assign activity
Assign Activity -> currentDate = DateTime.Now
currentDate is of DataType System.DateTime
→ Create two variables in variables Panel, financialYearStart and financialYearEnd of dataType System.DateTime,
→ Use below condition in If:
If
currentDate.Month >= 4
Then
Assign activity -> financialYearStart = New DateTime(currentDate.Year, 4, 1)
Assign activity -> financialYearEnd = New DateTime(currentDate.Year + 1, 3, 31)
Else
Assign activity -> financialYearStart = New DateTime(currentDate.Year - 1, 4, 1)
Assign activity -> financialYearEnd = New DateTime(currentDate.Year, 3, 31)
End If
→ You can print the values of financialYearStart and financialYearEnd using Write Line or Message Box.
"Financial Year Start Date: " + financialYearStart.ToString("MM/dd/yyyy") + Environment.NewLine + "Financial Year End Date: " + financialYearEnd.ToString("MM/dd/yyyy")
FLOW:
VARIABLE DATATYPE:
XAML:
FindRecentFinancialYear.xaml (9.7 KB)
Hope it helps!!
currentDate is of DataType System.DateTime.
Check the variable panel for better understanding.
Regards
oky… thank you for guidance madam…
Glad to have helped. Please mark my post as solution so that it will help others.
Regards



