Forum Discussion
Supratim
8 years agoContributor III
@doug.fossler
Please provide the example of input format you have and what is the required output format
doug_fossler
8 years agoNew Contributor
punchInDate is in “yyyy-MM-dd”
punchInTime is in “HH:mm”
punchIn should be something like “MM/dd/yyyy HH:mm”, or “yyyy-MM-dd HH:mm”, or “MMddyyyyHHmm”, etc.
- Supratim8 years agoContributor III
@doug.fossler
Use this-
$punchInDate.toLocaleDateString(‘{“format”:“yyyy-MM-dd HH:mm”}’if punchInDate is coming as date field , if it’s coming as String then 1st do Date.parse($punchInDate), then use formater in mapper snap
- doug_fossler8 years agoNew Contributor
I am not doing this inside a mapper snap, i am attempting to do this in javascript inside a script snap on purpose.
- Supratim8 years agoContributor III
use mapper only. Why need to have script snap? always trying to ignore script as much as possible.