Beispiel #1
0
        private string TranslateData(DateTime creationData)
        {
            string result = "";

            switch (Query.FindCurrentLanguage())
            {
            case "pt-BR":
                result = "" + SetupDateTimeValue(creationData.Day) + "/" + SetupDateTimeValue(creationData.Month) + "/" + creationData.Year + " " + " " + SetupDateTimeValue(creationData.Hour) + ":" + SetupDateTimeValue(creationData.Minute) + ":" + SetupDateTimeValue(creationData.Second);
                break;

            case "en-US":
                result = "" + SetupDateTimeValue(creationData.Month) + "/" + SetupDateTimeValue(creationData.Day) + "/" + creationData.Year + " " + SetupDateTimeValue(creationData.Hour) + ":" + SetupDateTimeValue(creationData.Minute) + ":" + SetupDateTimeValue(creationData.Second);
                break;

            case "es-ES":
                result = "" + SetupDateTimeValue(creationData.Day) + "-" + SetupDateTimeValue(creationData.Month) + "-" + creationData.Year + " " + SetupDateTimeValue(creationData.Hour) + ":" + SetupDateTimeValue(creationData.Minute) + ":" + SetupDateTimeValue(creationData.Second);
                break;

            default:
                break;
            }
            return(result);
        }