[HELP] zero date and time
#1

Hello everyone how can I make this


1.1.2014


to


01.01.2014


So what I want is to show 0 in front of day and month to 9 and from 10 is normal 10.10.2014 etc if you know what I mean. Thanks
Reply
#2

You can use something like %02d with format/printf.

Have a look here: https://sampwiki.blast.hk/wiki/Format
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)