Hello,
I have date in below format in column I1 , i need to copy that and need to paste in all rows of column J.
I am using read cell to copy value from I1 with variable type as generic value.
i want to paste as it is .
             
            
              
            
           
          
            
              
                singh_sumit  
              
                  
                    January 9, 2025, 12:29pm
                   
                  2 
               
             
            
              Hie @Mathkar_kunal   you can do this with many option one of and the simple option is use format cells activity.and other method is read the value of the cell save it into the variable use the datetime parse method and set it to your format .
             
            
              
            
           
          
            
            
              yes can you please update me that date pase method .
please give me that method.
             
            
              
            
           
          
            
              
                singh_sumit  
              
                  
                    January 9, 2025, 12:38pm
                   
                  4 
               
             
            
              i’ll give you a same xaml check if help to you .BlankProcess5.zip  (136.3 KB)
cheers
             
            
              
            
           
          
            
              
                singh_sumit  
              
                  
                    January 9, 2025, 12:40pm
                   
                  5 
               
             
            
              okay first let me know where you get your value? are you get it from excel using get cell activity ? and if yes then it store in string type.
cheers
             
            
              
            
           
          
            
              
                singh_sumit  
                
                  
                    January 9, 2025, 12:45pm
                   
                  6 
               
             
            
              Hey @Mathkar_kunal   here the method
DateTime.ParseExact(yourValue, “dd/M/yy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“dd/MM/yyyy”)
 
             
            
              
            
           
          
            
            
              i am getting below error
“string was not recognized as valid date time” for write cell.
i am using below expression
as my date is like 2025-01-08 which needs to be copy.
             
            
              
            
           
          
            
              
                singh_sumit  
                
                  
                    January 9, 2025,  2:59pm
                   
                  8 
               
             
            
              Hie @Mathkar_kunal   you get this error because in the parse method you put the wrong format as input this is your format   2025-01-08 and in parse method you pass like this yyyy/mm/dd so thats why it throw error  the two error you are doing is
1- the parameter
Pass this logic in your  code
DateTime.ParseExact(yourValue, “yyyy-dd-MM”, System.Globalization.CultureInfo.InvariantCulture).ToString(“dd/MM/yyyy”)
 
cheers
             
            
              
            
           
          
            
              
                sarvesh.b  
              
                  
                    January 10, 2025,  9:40am
                   
                  9 
               
             
            
              Hi @Mathkar_kunal 
In read cell activity try using preserve format  option by ticking the checkbox in read cell properties. And then write in your output file.
Thanks!!