aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/utils/Formatter.kt
blob: 133c0288af3411d80e486bf924a146cf62ff4b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package mx.trackermap.TrackerMap.utils

import kotlinx.datetime.*

class Formatter {
    companion object {
        fun formatDate(date: String): String {
            return date.substring(0 until date.indexOf('+'))
                .toLocalDateTime().toString().replace('T', ' ')
        }
    }
}