Skip to main content
Answer

date conversion

  • October 26, 2023
  • 4 replies
  • 179 views

Forum|alt.badge.img+1

Hi Everyone  

How to convert date format from dd/MMM/yyyy to dd/MM/yyyy?

Example:

06/Oct/2023 to 06/10/2023?

Best answer by sannath.k

@suganya You can use and go with the custom logic like python scripts for the date format conversion. Else use datetime to string command where you can select date formats or use custom format according to the time zone.

 

4 replies

Forum|alt.badge.img+4
  • Navigator | Tier 3
  • Answer
  • October 26, 2023

@suganya You can use and go with the custom logic like python scripts for the date format conversion. Else use datetime to string command where you can select date formats or use custom format according to the time zone.

 

Zaid Chougle
Navigator | Tier 3
Forum|alt.badge.img+17
  • Navigator | Tier 3
  • October 26, 2023

Hi @suganya ,

You can use Date time to String action under Date package : Refer below screenshot for your reference. 

 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • October 26, 2023

@sannath.k @Zaid Chougle Thanks.

But datetime package throws exception.

 my input '26/Oct/2023' , custom format dd/MMM/yyyy

 


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • October 27, 2023

@suganya You need to take input variable as Datetime variable then you can get result else choose system default date $System:Date$ variable.