How to Convert IST time to UST time.

gil.silva

Active Member
Hello,

Using the calculation stage, you can apply functions from the Date group, to apply time zone conversions
 

NPoornima

New Member
Hi Folks,

How to Convert IST time to UST time, can anyone suggest me with code or else with Blueprism.

Hi Suresh, updated VBO is available in blueprism portal for this

VBO name: Utility - Date and Time Manipulation
Action Name: UTC to Local

Input:
1. Get current IST date and time using Now() function and store it into data item
2. Pass Timezone ID or name for UST

Output: It will convert to UST and returns the output.

Note: To know the Timezone ID for UST, call action Get Timezones from same VBO and it returns the list of Timezones in collection
 
Last edited:

Manikanta

Member
Hi Suresh, updated VBO is available in blueprism portal for this

VBO name: Utility - Date and Time Manipulation
Action Name: Local to UTC

Input:
1. Get current IST date and time using Now() function and store it into data item
2. Pass Timezone ID or name for UST

Output: It will convert to UST and returns the output.

Note: To know the Timezone ID for UST, call action Get Timezones from same VBO and it returns the list of Timezones in collection

Hey @NPoornima
Did u get exact solution for this coz,
I didn't get excat solution.
 

NPoornima

New Member
COuld u Please post me the whole process in screenshots.
It'll help to know abt it.
Sorry, the action should be UTC to Local. Attached screenshots for reference.
 

Attachments

  • Process - IST to UST Conversion.JPG
    54.5 KB · Views: 29
  • Screenshot1 - Get TimeZones.JPG
    30.2 KB · Views: 21
  • Screenshot2 - Get Now().JPG
    24.7 KB · Views: 17
  • Screenshot3 - IST (UTC to Local).JPG
    34.6 KB · Views: 17
  • Screenshot4 - UST (UTC to Local).JPG
    34.2 KB · Views: 16

sheel

New Member
Use below code to change current local time to a specific Timezone

Input
TimeZoneID as Text

Output
ConvertedTime as Time

Dim now As DateTime = DateTime.Now
ConvertedTime = TimeZoneInfo.ConvertTime(now, TimeZoneInfo.FindSystemTimeZoneById(TimeZoneID))
=============================================================================
This will return as output as DateTime

Input
TimeZoneID as Text

Output
ConvertedTime as DateTime

Dim now As DateTime = DateTime.Now
ConvertedTime = TimeZoneInfo.ConvertTime(now,TimeZoneInfo.Local,TimeZoneInfo.FindSystemTimeZoneById(TimeZoneID))

Thanks,
Sheel Ku.
 
Use below code to change current local time to a specific Timezone

Input
TimeZoneID as Text

Output
ConvertedTime as Time

Dim now As DateTime = DateTime.Now
ConvertedTime = TimeZoneInfo.ConvertTime(now, TimeZoneInfo.FindSystemTimeZoneById(TimeZoneID))
=============================================================================
This will return as output as DateTime

Input
TimeZoneID as Text

Output
ConvertedTime as DateTime

Dim now As DateTime = DateTime.Now
ConvertedTime = TimeZoneInfo.ConvertTime(now,TimeZoneInfo.Local,TimeZoneInfo.FindSystemTimeZoneById(TimeZoneID))

Thanks,
Sheel Ku.
Do we have anything similar for date format.

Example: If i provide a date "dd/mm/yy" and convert this into "dd/mmm/yyy" or dd.mmm.yyyy or dd-mm-yyyy
 
Last edited:
Top