Page 1 of 1

Using Timestamp or Date in textfield

Posted: Wed Dec 19, 2018 12:36 pm
by nnorbi
Hi!

I need a little helt. I recording some action from desktop application. I need insert the current system date one of the Text field.

How can I do that?

Many Thanks :)

Re: Using Timestamp or Date in textfield

Posted: Wed Dec 19, 2018 3:32 pm
by manish
Hi nnorbi,

You can get the current system time using the below code:

Code: Select all

 string systime  = System.DateTime.Now.ToString("dd_MM_yyyy_hh_mm_ss"); 
Of course, you can specify your own time format.

Re: Using Timestamp or Date in textfield

Posted: Thu Dec 20, 2018 11:46 am
by nnorbi
Thank you :)