How to change datatype of (now.date) from date to string

how to change datatype of (now.date) from date to string

1 Like

Hi @mu_nazza

Try this

Now.Date.ToString("dd-MM-yyyy")

image

not working

Try the below.
System.DateTime.Now.ToString

You can refer the below doc for more formatting.

assign

Now.Date.ToString("dd-MM-yyyy")

to a string variable

Hi @mu_nazza

try this:

image

image

want to change data table’s column’ datatype from date to string

Hi @mu_nazza

Use convert([columnname], ‘System.String’) in the select statement while specifying the column

Refer this link: