How to get system current date only?

studio

#1

hello ,how to get the current date, but i don’t want time. How to get system current date only?


#2

@suraj23 assign datetime dt = Now
assign string a = dt.ToString(“dd/MM/yyyy”)


#3

Hi suraj23,

Use this:
DateTime.Now.ToString(“dd-MM-yyyy”)

You can change the date format according to your need.

Thanks.


#4

yes i tried but still showing me time,will send u my workflow kindly check DateAndTimeVariable.xaml (6.3 KB)


#5

@suraj23 You can check it now

DateAndTimeVariable.xaml (7.2 KB)


#6

still showing 00 in my excelData.xlsx (367.9 KB)


#7

in sys_date column


#8

@suraj23 In write value change timToday.ToString to a.toString

DateAndTimeVariable.xaml (7.1 KB)


#9

if it still writes time check excel cell formatting


#10

ya done thanks a lot


#11