1

as title says ;-) I want to get now()'s timestamp to year month day, e.g.

uint64_t formated_date(uint64_t tm) {
    // 1542014702 -> 20181112172502
}
1

If it can be done in contract for that you need to add some functionality into contract that will generate date from timestamp but if it can be done in front end side only then it will be cost effective for users.

| improve this answer | |
  • thanks, I've implement it in my contract just follow gmtime.c ;-) – Lava Ric Nov 13 '18 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.