I want to get System date in one of the field

  • Last Post 2 weeks ago
  • Topic Is Solved
Sunil Edupuganti posted this 2 weeks ago


I need to get only the System Date in one of field, How can i do that??

Present i am using the below script, here i am getting date along with time also but i don't need time. Help me..


using System;

using System.Globalization;


string deliveryDate = DateTime.Now.ToString();

Context.Field("System Date").Text=deliveryDate;

Order By: Standard | Newest | Votes
Vladimir Dimitrijevic posted this 2 weeks ago


Actually too easy:


using System;

string deliveryDate = DateTime.Now.ToShortDateString();

Context.Field("System Date").Text= deliveryDate;


Best regards,


Sunil Edupuganti posted this 2 weeks ago

Thank you so much Vladimir.....Could you look the below link once please....??

get the string in one line