SA-MP Forums Archive
[HELP] zero date and time - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] zero date and time (/showthread.php?tid=539968)



[HELP] zero date and time - Luca12 - 01.10.2014

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


Re: [HELP] zero date and time - Kirollos - 01.10.2014

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

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