Skip to main content
Solved

date conversion

  • Oct 26, 2023 8:57 AM UTC
  • 4 replies
  • 358 views

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.

 
View original

4 replies

  • Navigator | Tier 3
  • Answer
  • Oct 26, 2023 10:27 AM UTC

@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+9
  • Navigator | Tier 3
  • Oct 26, 2023 11:39 AM UTC

Hi @suganya ,

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

 


  • Author
  • Cadet | Tier 2
  • Oct 26, 2023 11:10 PM UTC

@sannath.k @Zaid Chougle Thanks.

But datetime package throws exception.

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

 


  • Navigator | Tier 3
  • Oct 27, 2023 4:11 AM UTC

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