We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Wrong Date in Baseline End and Start after calling PageMethode

Thread ID:

Created:

Updated:

Platform:

Replies:

131973 Aug 6,2017 11:28 AM Aug 9,2017 03:17 AM ASP.NET Web Forms 3
loading
Tags: Gantt
Martin Sickel
Asked On August 6, 2017 11:28 AM

Dear All

If I add a new record to the Gantt Control which includes a Baseline Start and End Date the Dates are wronly transported.

example:

BEnd = 13.06.2017
BStart = 26.06.2017

after PageMethode the transfered data will then look like

BEnd = 12.06.2017
BStart= 25.06.2017

I have prepared a Video which shows it as well.

any suggestions?

Thamks
Martin

Attachment: error_BaseLine_Start_End_35a75854.zip

Jayakumar Duraisamy [Syncfusion]
Replied On August 7, 2017 06:44 AM

Hi Martin, 
We have analyzed the reported issue and it is due to time zone offset problem. When stringify the UTC date format, it is convert with time zone offset variation. Hence, we get basline date value has one date difference. To overcome this problem, we have to pass the baseline date values to Convert.ToDateTime() method and it will be convert back as original date value.  
Please refer following code snippet, 
public string GetOriginalDate(string date) 
        { 
            DateTime convertedDate = Convert.ToDateTime(date); 
 
            return (convertedDate.Month + "/" + convertedDate.Day + "/" + convertedDate.Year); 
        } 
We have prepared a sample for your reference. In the server side, we have a method called “GetOriginalDate”. It will return original date in string format and add it to the database. 
Please find the sample location as below, 
To know more about time zone offset,  
Please let us know, if you require any other assistance. 
Regards, 
Jayakumar D 
  
  


Martin Sickel
Replied On August 8, 2017 03:37 AM

Thank you


Jayakumar Duraisamy [Syncfusion]
Replied On August 9, 2017 03:17 AM

Hi Martin, 
We are happy that your issue has been resolved. Please let us know if you need any other assistance. 
Regards, 
Jayakumar D 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;