Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

182
Vistas
I want to fetch the '_ts' value from cosmosDB as a datetime string in my code to view to the user as to show when the data was recorded
          {selectedDate == "aN-aN-NaN" ? (
        <View style={{ alignSelf: "center", marginVertical: 20 }}>
          <WfTextRedItalic>Please Select a date first</WfTextRedItalic>
        </View>
      ) : attendanceRecorded === false && recordedDate !== undefined ? (
        <View style={{ alignSelf: "center", marginVertical: 20 }}>
          <WfTextGreenNormal>
            Attendance was last recorded on {recordedDate}
          </WfTextGreenNormal>
        </View>
      ) : attendanceRecorded === false && recordedDate === undefined ? (
        <View style={{ alignSelf: "center", marginVertical: 20 }}>
          <WfTextYellowItalic>Please Mark Attendance</WfTextYellowItalic>
        </View>
      ) : (
        <View style={{ alignSelf: "center", marginVertical: 20 }}>
          <WfTextGreenNormal>
            Attendance recorded for date {selectedDate}
          </WfTextGreenNormal>
        </View>
      )}

As you can see in the above code the 'recordedDate' is what I want to set the value of ts as Im using type script and nodejs

The current items that are fetched or posted from my ClassAttendance Container are :

export declare class ClassAttendance {
id: string;
studentId: string;
classProfileId: string;
dateAttended: string;
studentAttended: "Yes" | "No" | "Partial";
teacherId?: string;
lessonId?: string;
startTime?: string;
endTime?: string;
connectionProblem?: boolean;
constructor(studentId: string, classProfileId: string, dateAttended: string, studentAttended?: "Yes" | "No" | "Partial", teacherId?: string, lessonId?: string, startTime?: string, endTime?: string, connectionProblem?: boolean);

If any more info is needed please let me know Im new to working with this code

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda